Skip to content

Commit

Permalink
fix: Take default data tile index action upon non-string aggregate ke…
Browse files Browse the repository at this point in the history
…y. (#263)
  • Loading branch information
jheer committed Jan 11, 2024
1 parent a987652 commit 5c0c078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/DataCubeIndexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function getIndexColumns(client) {
let count;

for (const { as, expr: { aggregate } } of q.select()) {
switch (aggregate?.toUpperCase()) {
switch (aggregate?.toUpperCase?.()) {
case 'COUNT':
case 'SUM':
aggr.push({ [as]: sql`SUM("${as}")::DOUBLE` });
Expand Down

0 comments on commit 5c0c078

Please sign in to comment.