Skip to content

Commit

Permalink
row_policy_zero_expression: use RowPolicyFilter::empty()
Browse files Browse the repository at this point in the history
  • Loading branch information
ilejn committed Mar 29, 2024
1 parent 37a5ec5 commit 158743f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Storages/StorageMerge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ std::vector<ReadFromMerge::ChildPlan> ReadFromMerge::createChildrenPlans(SelectQ
database_name,
table_name,
RowPolicyFilterType::SELECT_FILTER);
if (row_policy_filter_ptr && row_policy_filter_ptr->expression)
if (row_policy_filter_ptr && !row_policy_filter_ptr->empty())
{
row_policy_data_opt = RowPolicyData(row_policy_filter_ptr, storage, modified_context);
row_policy_data_opt->extendNames(real_column_names);
Expand Down

0 comments on commit 158743f

Please sign in to comment.