Skip to content

Commit 5a5fffd

Browse files
committed
fix(hive): Fix count when id is not defined
1 parent 9207678 commit 5a5fffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-schema-compiler/adapter/BaseQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ class BaseQuery {
10661066
this.safeEvaluateSymbolContext().ungrouped ||
10671067
this.safeEvaluateSymbolContext().ungroupedForWrappingGroupBy
10681068
) {
1069-
return evaluateSql;
1069+
return evaluateSql === '*' ? '1' : evaluateSql;
10701070
}
10711071
if ((this.safeEvaluateSymbolContext().ungroupedAliases || {})[measurePath]) {
10721072
evaluateSql = (this.safeEvaluateSymbolContext().ungroupedAliases || {})[measurePath];

0 commit comments

Comments
 (0)