summaryrefslogtreecommitdiffstats
path: root/src/prql/utils.prql
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/prql/utils.prql5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/prql/utils.prql b/src/prql/utils.prql
new file mode 100644
index 0000000..326f5ba
--- /dev/null
+++ b/src/prql/utils.prql
@@ -0,0 +1,5 @@
+let distinct = func column rel <relation> -> <relation> (
+ rel
+ select {column}
+ group {column} (take 1)
+)