Skip to content

Commit

Permalink
[Fix](branch-2.1) fix manual pick with mistake when handling decimal …
Browse files Browse the repository at this point in the history
…type

introduced by apache#39843
  • Loading branch information
eldenmoon committed Aug 27, 2024
1 parent cb312ca commit 037c030
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/vec/exec/scan/vscan_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ Status VScanNode::_normalize_conjuncts() {
continue;
}
}
init_value_range(slot, slot->type().type);
init_value_range(slot, slot->type());
}

get_cast_types_for_variants();
Expand Down
3 changes: 3 additions & 0 deletions regression-test/suites/nereids_arith_p0/decimal.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2309,6 +2309,9 @@ suite('nereids_arith_p0_decimal') {
`b` DECIMALV3(9, 3) NOT NULL
) DISTRIBUTED BY HASH(a) PROPERTIES("replication_num" = "1");
"""
sql "set experimental_enable_pipeline_x_engine = false"
sql "select a + b from test_arithmetic_expressions"
sql "set experimental_enable_pipeline_x_engine = true"
sql "select a + b from test_arithmetic_expressions"
sql """drop table if exists test_arithmetic_expressions"""
}

0 comments on commit 037c030

Please sign in to comment.