Commit 5b9e1aa
committed
fix: use astformat.String for multi-arg functions to preserve OVER clause
The inferColNameFromExpr function was manually constructing the
decorated column for functions with 0 or 2+ arguments using
fmt.Sprintf, which did not include the OVER clause for window
functions like ROW_NUMBER(), RANK(), etc.
Changed to use astformat.String(expr, formatter) which properly
calls FuncExpr.Format() and includes the OVER clause.1 parent 1615712 commit 5b9e1aa
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
679 | | - | |
| 679 | + | |
| 680 | + | |
680 | 681 | | |
681 | 682 | | |
682 | 683 | | |
| |||
0 commit comments