fix typo: parititon => partition

This commit is contained in:
yun 2024-11-14 01:13:56 -08:00
parent 7a393dc140
commit 5a6beb7ad0

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)