Skip to content

Commit

Permalink
fixed some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
lgbo-ustc committed Nov 6, 2024
1 parent 6b458b6 commit 88e5b61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp-ch/local-engine/Operator/AdvancedExpandStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ void AdvancedExpandTransform::detectCardinality()

for (size_t i = 0; i < project_set_exprs.getExpandRows(); ++i)
{
const auto & kinds = project_set_exprs.getKinds()[expand_expr_iterator];
const auto & kinds = project_set_exprs.getKinds()[i];
for (size_t k = 0; k < grouping_keys; ++k)
{
const auto & kind = kinds[k];
Expand All @@ -303,6 +303,7 @@ void AdvancedExpandTransform::detectCardinality()
}
}
}
LOG_DEBUG(getLogger("AdvancedExpandTransform"), "Low cardinality expand: {}", fmt::join(is_low_cardinality_expand, ","));

input_chunk = DB::Chunk(block.getColumns(), block.rows());
cardinality_detect_blocks.clear();
Expand Down

0 comments on commit 88e5b61

Please sign in to comment.