wForget opened a new pull request, #1295: URL: https://github.com/apache/datafusion-comet/pull/1295
## Which issue does this PR close? Closes #1294. ## Rationale for this change When precision is less than or equal to 18, spark use unscaled long value of decimal to calculate hash. https://github.com/apache/spark/blob/d12bb23e49928ae36b57ac5fbeaa492dadf7d28f/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/hash.scala#L560-L567 ## What changes are included in this PR? When precision is less than or equal to 18, convert i128 native value of decimal to i64 to calculate hash. ## How are these changes tested? added unit test -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org