ygerzhedovich commented on code in PR #4352:
URL: https://github.com/apache/ignite-3/pull/4352#discussion_r1749677815
##########
modules/sql-engine/src/integrationTest/java/org/apache/ignite/internal/sql/engine/ItSqlOperatorsTest.java:
##########
@@ -102,7 +102,7 @@ public void testArithmetic() {
public void testAggregates() {
assertExpression("COUNT(*)").returns(1L).check();
assertExpression("SUM(val)").returns(1L).check();
- assertExpression("AVG(val)").returns(1).check();
+ assertExpression("AVG(val)").returns(new
BigDecimal("1.0000000000000000")).check();
Review Comment:
we can use `setScale` method on DECIMAL value, like this
``BigDecimal.ONE.setScale(16, RoundingMode.UNNECESSARY)``.
For me, it looks more readable.
WDYT?
--
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]