Commit 1615712
committed
fix: output OVER clause in rewritten SQL for window functions
The FuncExpr cases in astvisit files were manually constructing
function output but not including the OVER clause, causing
argument-less window functions like ROW_NUMBER() and RANK() to
fail with "misuse of window function" errors.1 parent 3874d91 commit 1615712
File tree
3 files changed
+9
-0
lines changed- internal/stackql/astvisit
3 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
908 | 911 | | |
909 | 912 | | |
910 | 913 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
975 | 975 | | |
976 | 976 | | |
977 | 977 | | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
978 | 981 | | |
979 | 982 | | |
980 | 983 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
907 | 910 | | |
908 | 911 | | |
909 | 912 | | |
| |||
0 commit comments