You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/moonblade/window.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
-**cumsum**(*\<expr\>*) -> `number`: Returns the cumulative sum of the numbers yielded by given expression.
7
7
-**dense_rank**(*\<expr\>*) -> `number`: Returns the dense rank (there will be no gaps, but ties remain possible for a same rank) of numbers yielded by given expression. This requires buffering whole file or group!
8
8
-**frac**(*\<expr\>*, *decimals?*) -> `number`: Returns the fraction represented by numbers yielded by given expression over the total sum of them. This requires buffering whole file or group!
9
+
-**front_coding**(*\<expr\>*) -> `string`: Compress string returned by given expression using incremental encoding (useful to compress sorted data).<br>See https://en.wikipedia.org/wiki/Incremental_encoding
9
10
-**lag**(*\<expr\>*, *steps?*, *\<expr\>?*) -> `any`: Returns a value yielded by given expression, lagged by n steps or 1 step by default. Can take a second expression after the number of steps to return a default value for rows that come before first lagged value.
10
11
-**lead**(*\<expr\>*, *steps?*, *\<expr\>?*) -> `any`: Returns a value yielded by given expression, leading by n steps or 1 step by default. Can take a second expression after the number of steps to return a default value for rows that come after last lead value.
11
12
-**ntile**(*k*, *\<expr\>*) -> `number`: Splits numbers yielded by given expression into `k` nearly equal-sized consecutive groups. This requires buffering whole file or group!
Copy file name to clipboardExpand all lines: src/moonblade/doc/window.json
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,12 @@
35
35
"returns": "number",
36
36
"help": "Returns the fraction represented by numbers yielded by given expression over the total sum of them. This requires buffering whole file or group!"
37
37
},
38
+
{
39
+
"name": "front_coding",
40
+
"arguments": ["<expr>"],
41
+
"returns": "string",
42
+
"help": "Compress string returned by given expression using incremental encoding (useful to compress sorted data).\nSee https://en.wikipedia.org/wiki/Incremental_encoding"
0 commit comments