Skip to content

Commit 27d0d49

Browse files
fix(@cubejs-backend/elasticsearch-driver): respect ungrouped parameter (#684) Thanks to @gauravlanjekar!
Co-authored-by: gaurav lanjekar <gaurav@leanspace.io>
1 parent 28dc4de commit 27d0d49

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ class AWSElasticSearchQuery extends BaseQuery {
5151
}
5252

5353
groupByClause() {
54+
if (this.ungrouped) {
55+
return '';
56+
}
5457
const dimensionsForSelect = this.dimensionsForSelect();
5558
const dimensionColumns = R.flatten(dimensionsForSelect.map(s => s.selectColumns() && s.dimensionSql()))
5659
.filter(s => !!s);

0 commit comments

Comments
 (0)