Skip to content

Commit a6fe561

Browse files
committed
fix
1 parent f1b510a commit a6fe561

File tree

2 files changed

+16
-19
lines changed

2 files changed

+16
-19
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ export class BaseQuery {
337337
this.customSubQueryJoins = this.options.subqueryJoins ?? [];
338338
this.useNativeSqlPlanner = this.options.useNativeSqlPlanner ?? getEnv('nativeSqlPlanner');
339339
this.canUseNativeSqlPlannerPreAggregation = getEnv('nativeSqlPlannerPreAggregations');
340-
this.canUseNativeSqlPlannerPreAggregation = getEnv('nativeSqlPlannerPreAggregations');
341340
if (this.useNativeSqlPlanner && !this.canUseNativeSqlPlannerPreAggregation && !this.neverUseSqlPlannerPreaggregation()) {
342341
const fullAggregateMeasures = this.fullKeyQueryAggregateMeasures({ hasMultipliedForPreAggregation: true });
343342

rust/cubesqlplanner/cubesqlplanner/src/logical_plan/pre_aggregation.rs

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,27 @@ impl PrettyPrint for PreAggregation {
2222
let state = state.new_level();
2323
result.println(&format!("name: {}", self.name), &state);
2424
result.println(&format!("cube_name: {}", self.cube_name), &state);
25-
/* result.println(&format!("source:"), &state);
25+
result.println(&format!("source:"), &state);
2626
match self.source.as_ref() {
27-
PreAggregationSource::Single(table) => match table {
28-
PreAggregationUnit::Table(table) => {
29-
let state = state.new_level();
30-
result.println(
31-
&format!("table: {}.{}", table.cube_name, table.name),
32-
&state,
33-
);
34-
}
35-
PreAggregationUnit::Union(union) => {
36-
result.println("Union:", &state);
37-
let state = state.new_level();
38-
for item in union.items.iter() {
39-
result.println(&format!("-{}.{}", item.cube_name, item.name), &state);
40-
}
41-
}
42-
},
27+
PreAggregationSource::Single(table) => {
28+
let state = state.new_level();
29+
result.println(
30+
&format!("table: {}.{}", table.cube_name, table.name),
31+
&state,
32+
);
33+
}
4334
PreAggregationSource::Join(_) => {
4435
let state = state.new_level();
4536
result.println(&format!("rollup join"), &state);
4637
}
47-
} */
38+
PreAggregationSource::Union(union) => {
39+
result.println("Union:", &state);
40+
let state = state.new_level();
41+
for item in union.items.iter() {
42+
result.println(&format!("-{}.{}", item.cube_name, item.name), &state);
43+
}
44+
}
45+
}
4846
result.println(&format!("external: {}", self.external), &state);
4947
result.println(
5048
&format!(

0 commit comments

Comments
 (0)