We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a6bcfc3 + 2a03b97 commit 196efb0Copy full SHA for 196efb0
internal/stackql/parserutil/parser_util.go
@@ -638,6 +638,11 @@ func inferColNameFromExpr(
638
retVal.IsAggregateExpr = true
639
retVal.Type = aggCol.getReturnType()
640
}
641
+ // Window functions (with OVER clause) are computed expressions
642
+ // that don't need to be resolved from underlying tables/CTEs
643
+ if expr.Over != nil {
644
+ retVal.IsAggregateExpr = true
645
+ }
646
if len(funcNameLowered) >= 4 && funcNameLowered[0:4] == "json" {
647
decoratedColumn := strings.ReplaceAll(retVal.Name, `\"`, `"`)
648
retVal.DecoratedColumn = getDecoratedColRendition(decoratedColumn, alias)
0 commit comments