Vivek1106-04 commented on PR #59437: URL: https://github.com/apache/spark/pull/59437#issuecomment-7065024742
> `isNonAssociative` looks only at the result type. Under ANSI, integral `+`/`*` and interval `+` raise on overflow... It is the same kind of problem, yes. I kept it out on purpose. `ReorderAssociativeOperator` already re-associates integral `Add`/`Multiply` in every eval mode, so changing canonicalization alone would not fix it. Moving integral chains to the per-operator path would also cost subexpression elimination and cache reuse when nothing overflows, which is the common case. I would rather handle it in a separate JIRA, and I can open one if you think it is worth it. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
