PyRSA commented on PR #8718: URL: https://github.com/apache/paimon/pull/8718#issuecomment-5023295362
> Python’s `product` function does not align with Java semantics. DECIMAL division is silently rounded, whereas Java throws an error; the default `decimal precision=28` causes the valid DECIMAL(38,*) operation to fail; FLOAT/DOUBLE division by zero throws an exception, whereas Java returns `Infinity`; the shared Decimal encoder/decoder also has issues with `scale > 18` and negative canonical bytes. Good catch, thanks! Fixed. The Python implementation now matches the Java behavior for DECIMAL division and FLOAT/DOUBLE division by zero. It also includes the related Decimal compatibility fixes. -- 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]
