From 88e5b611493945ad1dec2e841dc1160d970662db Mon Sep 17 00:00:00 2001 From: lgbo-ustc Date: Wed, 6 Nov 2024 14:13:23 +0800 Subject: [PATCH] fixed some bugs --- cpp-ch/local-engine/Operator/AdvancedExpandStep.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp-ch/local-engine/Operator/AdvancedExpandStep.cpp b/cpp-ch/local-engine/Operator/AdvancedExpandStep.cpp index 61815af123fe..6ac5f5fc8f8b 100644 --- a/cpp-ch/local-engine/Operator/AdvancedExpandStep.cpp +++ b/cpp-ch/local-engine/Operator/AdvancedExpandStep.cpp @@ -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]; @@ -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();