Skip to content

Commit aaf51e9

Browse files
committed
disable target build
1 parent 2ec12ac commit aaf51e9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

scripts/ci/deploy/config/databend-query-node-1.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ join_spilling_memory_ratio = 60
7373
[log]
7474

7575
[log.file]
76-
level = "DEBUG"
76+
level = "INFO"
7777
format = "text"
7878
dir = "./.databend/logs_1"
7979
prefix_filter = ""

src/query/service/src/interpreters/interpreter_merge_into.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ impl MergeIntoInterpreter {
202202
}
203203
}
204204

205+
log::info!("target build optimization is {}", target_build_optimization);
206+
205207
// check mutability
206208
let check_table = self.ctx.get_table(catalog, database, table_name).await?;
207209
check_table.check_mutable()?;
@@ -227,7 +229,7 @@ impl MergeIntoInterpreter {
227229

228230
let insert_only = matches!(merge_type, MergeIntoType::InsertOnly);
229231

230-
let mut row_id_idx = if !insert_only {
232+
let mut row_id_idx = if !insert_only && !target_build_optimization {
231233
match meta_data
232234
.read()
233235
.row_id_index_by_table_index(*target_table_idx)

src/query/service/src/pipelines/builders/merge_into_join_optimizations.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ impl PipelineBuilder {
2525
PhysicalPlan::TableScan(scan) => match scan.table_index {
2626
None | Some(databend_common_sql::DUMMY_TABLE_INDEX) => (false, false),
2727
Some(table_index) => match need_reserve_block_info(self.ctx.clone(), table_index) {
28-
(true, is_distributed) => (true, is_distributed),
28+
//(true, is_distributed) => (true, is_distributed),
29+
(true, is_distributed) => (false, is_distributed),
2930
_ => (false, false),
3031
},
3132
},

0 commit comments

Comments
 (0)