Skip to content

Commit

Permalink
IGNITE-22716 SQL Calcite: Fix implicit conversion to DECIMAL for some…
Browse files Browse the repository at this point in the history
… functions
  • Loading branch information
alex-plekhanov committed Jul 17, 2024
1 parent ec8f27c commit 6092eb0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ public void testFunctionArgsToNumericImplicitConversion() {
assertQuery("select decode(?, 0, 0.0, 1, 1.000)").withParams(0).returns(new BigDecimal("0.000")).check();
assertQuery("select decode(?, 0, 0.000, 1, 1.0)").withParams(1).returns(new BigDecimal("1.000")).check();

// With callRewrite==true function COALESCE is rewritten to CASE and CoalesceImplementor can't be checked.
FrameworkConfig frameworkCfg = Frameworks.newConfigBuilder(FRAMEWORK_CONFIG)
.sqlValidatorConfig(FRAMEWORK_CONFIG.getSqlValidatorConfig().withCallRewrite(false))
.build();
Expand Down

0 comments on commit 6092eb0

Please sign in to comment.