deniskuzZ commented on PR #4448:
URL: https://github.com/apache/calcite/pull/4448#issuecomment-3016773663
I’m unable to reproduce NaN with Decimals in Calcite tests - it only occurs
with Doubles.
````
final String[] decimals = {"cast(64.34 as decimal(30,2))", "64.34", "64.34"};
f.checkAgg("stddev(x)", decimals, isExactly("0.00"));
````
However, in Hive, I can consistently reproduce NaN with Decimals and
`org.apache.calcite.rel.rules.AggregateReduceFunctionsRule`.
````
SELECT stddev(interest_paid) FROM (
SELECT cast(64.34 as decimal(30,2)) AS interest_paid
UNION ALL
SELECT 64.34
UNION ALL
SELECT 64.34
) t;
````
--
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]