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.
1 parent 1739929 commit 20733cfCopy full SHA for 20733cf
packages/cubejs-schema-compiler/src/adapter/BaseQuery.js
@@ -2539,6 +2539,10 @@ export class BaseQuery {
2539
return evaluateSql === '*' ? '1' : evaluateSql;
2540
}
2541
if (this.ungrouped) {
2542
+ if ((this.safeEvaluateSymbolContext().ungroupedAliasesForCumulative || {})[measurePath]) {
2543
+ evaluateSql = this.safeEvaluateSymbolContext().ungroupedAliasesForCumulative[measurePath];
2544
+ }
2545
+
2546
if (symbol.type === 'count' || symbol.type === 'countDistinct' || symbol.type === 'countDistinctApprox') {
2547
const sql = this.caseWhenStatement([{ sql: `(${evaluateSql}) IS NOT NULL`, label: '1' }]);
2548
return evaluateSql === '*' ? '1' : sql;
0 commit comments