Skip to content

Commit 099a888

Browse files
fix: treat wildcard Elasticsearch select as simple asterisk select: include * as part of RE to support elasticsearch indexes (#760) Thanks to @gauravlanjekar !
Co-authored-by: gaurav lanjekar <gaurav@leanspace.io>
1 parent e4d2874 commit 099a888

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
@@ -957,7 +957,7 @@ class BaseQuery {
957957
return this.preAggregations.originalSqlPreAggregationTable(foundPreAggregation);
958958
}
959959
const evaluatedSql = this.evaluateSql(cube, this.cubeEvaluator.cubeFromPath(cube).sql);
960-
const selectAsterisk = evaluatedSql.match(/^\s*select\s+\*\s+from\s+([a-zA-Z0-9_\-`".]+)\s*$/i);
960+
const selectAsterisk = evaluatedSql.match(/^\s*select\s+\*\s+from\s+([a-zA-Z0-9_\-`".*]+)\s*$/i);
961961
if (selectAsterisk) {
962962
return selectAsterisk[1];
963963
}

0 commit comments

Comments
 (0)