Merge pull request #71907 from yokofly/misc/typo-parititon-to-partition

TreeRewriter: fix typo: `parititon` => `partition`
This commit is contained in:
alesapin 2024-11-19 10:56:29 +00:00 committed by GitHub
commit 05bd7f4b4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1132,8 +1132,8 @@ bool TreeRewriterResult::collectUsedColumns(const ASTPtr & query, bool is_select
auto partition_columns = partition_desc.expression->getRequiredColumns(); auto partition_columns = partition_desc.expression->getRequiredColumns();
NameSet partition_columns_set(partition_columns.begin(), partition_columns.end()); NameSet partition_columns_set(partition_columns.begin(), partition_columns.end());
const auto & parititon_virtuals = MergeTreeData::virtuals_useful_for_filter; const auto & partition_virtuals = MergeTreeData::virtuals_useful_for_filter;
partition_columns_set.insert(parititon_virtuals.begin(), parititon_virtuals.end()); partition_columns_set.insert(partition_virtuals.begin(), partition_virtuals.end());
optimize_trivial_count = true; optimize_trivial_count = true;
for (const auto & required_column : required) for (const auto & required_column : required)