Skip to content

Commit 10bdac5

Browse files
committed
update
1 parent 28aae9d commit 10bdac5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/cubejs-backend-shared/src/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ const variables: Record<string, (...args: any) => any> = {
219219
scheduledRefreshBatchSize: () => get('CUBEJS_SCHEDULED_REFRESH_BATCH_SIZE')
220220
.default('1')
221221
.asInt(),
222-
nativeSqlPlanner: () => get('CUBEJS_TESSERACT_SQL_PLANNER').asBool(),
222+
nativeSqlPlanner: () => get('CUBEJS_TESSERACT_SQL_PLANNER').default('false').asBool(),
223223
nativeOrchestrator: () => get('CUBEJS_TESSERACT_ORCHESTRATOR')
224224
.default('false')
225225
.asBoolStrict(),

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ export class BaseQuery {
617617
return false;
618618
}
619619

620-
newQueryNotUseNative() {
620+
newQueryWithoutNative() {
621621
const QueryClass = this.constructor;
622622
return new QueryClass(this.compilers, { ...this.options, useNativeSqlPlanner: false });
623623
}
@@ -654,7 +654,7 @@ export class BaseQuery {
654654
}
655655

656656
if (isRelatedToPreAggregation) {
657-
return this.newQueryNotUseNative().buildSqlAndParams(exportAnnotatedSql);
657+
return this.newQueryWithoutNative().buildSqlAndParams(exportAnnotatedSql);
658658
}
659659

660660
return this.buildSqlAndParamsRust(exportAnnotatedSql);
@@ -3086,7 +3086,7 @@ export class BaseQuery {
30863086
}
30873087

30883088
newSubQueryForCube(cube, options) {
3089-
options = { ...options, useNativeSqlPlanner: false }; // We not use tesseract for pre-aggregations generation yet
3089+
options = { ...options, useNativeSqlPlanner: false }; // We don't use tesseract for pre-aggregations generation yet
30903090
if (this.options.queryFactory) {
30913091
// When dealing with rollup joins, it's crucial to use the correct parameter allocator for the specific cube in use.
30923092
// By default, we'll use BaseQuery, but it's important to note that different databases (Oracle, PostgreSQL, MySQL, Druid, etc.)

0 commit comments

Comments
 (0)