MaxGekk commented on PR #59437: URL: https://github.com/apache/spark/pull/59437#issuecomment-7070705535
> I would rather handle it in a separate JIRA, and I can open one if you think it is worth it. Yes, I think it's worth a separate JIRA. Under ANSI the difference is observable: with BIGINT `a = b = 2^40` and `c = 0`, `(a * b) * c` raises `ARITHMETIC_OVERFLOW` while `a * (b * c)` returns 0, and `SELECT (a * b) * c FROM t GROUP BY a * (b * c)` passes analysis and returns the grouping value without the error. Agreed that it needs more than a canonicalization change, given `ReorderAssociativeOperator`. Could you open one and link it here? One nit on the migration note: besides `MISSING_AGGREGATION`, a `GROUPING(...)` or `GROUPING_ID(...)` argument written in another association than the `GROUP BY` expression now fails with `GROUPING_COLUMN_MISMATCH` / `GROUPING_ID_COLUMN_MISMATCH`. Could the note name those too? -- 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]
