@malloydata/malloy 0.0.144-dev240426181908 → 0.0.144-dev240503150037
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -696,7 +696,11 @@ class QueryField extends QueryNode {
|
|
|
696
696
|
between = `ROWS BETWEEN ${preceding} PRECEDING AND ${following} FOLLOWING`;
|
|
697
697
|
}
|
|
698
698
|
const funcSQL = this.generateExpressionFromExpr(resultStruct, context, expr, state);
|
|
699
|
-
|
|
699
|
+
let retExpr = `${funcSQL} OVER(${partitionBy} ${orderBy} ${between})`;
|
|
700
|
+
if (isComplex) {
|
|
701
|
+
retExpr = `CASE WHEN group_set=${resultStruct.groupSet} THEN ${retExpr} END`;
|
|
702
|
+
}
|
|
703
|
+
return retExpr;
|
|
700
704
|
}
|
|
701
705
|
generateExpressionFromExpr(resultSet, context, e, state = new GenerateState()) {
|
|
702
706
|
let s = '';
|