Skip to content

Commit

Permalink
[CH] Use max_block_size controller read mergetree block size (#3669)
Browse files Browse the repository at this point in the history
What changes were proposed in this pull request?
Use spark.gluten.sql.columnar.backend.ch.runtime_settings.max_block_size controller read mergetree bolck size. Defalut is DEFAULT_BLOCK_SIZE=65409

(Fixes: #3667)

How was this patch tested?
Test by UT.
  • Loading branch information
loneylee authored Nov 10, 2023
1 parent 337b9d9 commit 6be077d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp-ch/local-engine/Parser/SerializedPlanParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ DB::QueryPlanPtr SerializedPlanParser::parseMergeTreeTable(const substrait::Read
query_context.storage_snapshot,
*query_info,
context,
4096 * 2,
context->getSettingsRef().max_block_size,
1);
QueryPlanPtr query = std::make_unique<QueryPlan>();
steps.emplace_back(read_step.get());
Expand Down

0 comments on commit 6be077d

Please sign in to comment.