Skip to content

Commit

Permalink
disable target build
Browse files Browse the repository at this point in the history
  • Loading branch information
dantengsky committed May 28, 2024
1 parent 2ec12ac commit aaf51e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/ci/deploy/config/databend-query-node-1.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ join_spilling_memory_ratio = 60
[log]

[log.file]
level = "DEBUG"
level = "INFO"
format = "text"
dir = "./.databend/logs_1"
prefix_filter = ""
Expand Down
4 changes: 3 additions & 1 deletion src/query/service/src/interpreters/interpreter_merge_into.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ impl MergeIntoInterpreter {
}
}

log::info!("target build optimization is {}", target_build_optimization);

// check mutability
let check_table = self.ctx.get_table(catalog, database, table_name).await?;
check_table.check_mutable()?;
Expand All @@ -227,7 +229,7 @@ impl MergeIntoInterpreter {

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

let mut row_id_idx = if !insert_only {
let mut row_id_idx = if !insert_only && !target_build_optimization {
match meta_data
.read()
.row_id_index_by_table_index(*target_table_idx)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ impl PipelineBuilder {
PhysicalPlan::TableScan(scan) => match scan.table_index {
None | Some(databend_common_sql::DUMMY_TABLE_INDEX) => (false, false),
Some(table_index) => match need_reserve_block_info(self.ctx.clone(), table_index) {
(true, is_distributed) => (true, is_distributed),
//(true, is_distributed) => (true, is_distributed),
(true, is_distributed) => (false, is_distributed),
_ => (false, false),
},
},
Expand Down

0 comments on commit aaf51e9

Please sign in to comment.