lowka commented on code in PR #4044:
URL: https://github.com/apache/ignite-3/pull/4044#discussion_r1668445669


##########
modules/sql-engine/src/integrationTest/java/org/apache/ignite/internal/sql/engine/ItDataTypesTest.java:
##########
@@ -366,7 +366,7 @@ public void testDecimalLiteral() {
                 .returns(new BigDecimal("1.00")).check();
 
         assertQuery("SELECT CASE WHEN false THEN DECIMAL '1.00' ELSE DECIMAL 
'0.0' END")
-                .returns(new BigDecimal("0.0")).check();
+                .returns(new BigDecimal("0.00")).check();

Review Comment:
   Type system reports DECIMAL(3,2), so `0.00` is correct.
   
   Now the results are consistent with a query above
   > SELECT CASE WHEN true THEN DECIMAL '1.00' ELSE DECIMAL '0' END
   > 1.00



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to