Skip to content

Commit

Permalink
fix: Remove castting to decimal256
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuyukitanimura committed Jul 30, 2024
1 parent 2aba950 commit 042ba72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/core/src/execution/datafusion/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ impl PhysicalPlanner {
(
DataFusionOperator::Divide,
Ok(DataType::Decimal128(p1, s1)),
Ok(DataType::Decimal128(p2, s2)),
Ok(DataType::Decimal128(_p2, s2)),
) if p1 - s1 as u8 + s2 as u8 + min(s1 + 4, DECIMAL128_MAX_SCALE) as u8
> DECIMAL128_MAX_PRECISION =>
{
Expand Down

0 comments on commit 042ba72

Please sign in to comment.