You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`get_next_precedence` announces `DIV` at `Precedence::MulDivModOp`, but both
dialects parsed its right operand with `parse_expr()` (= `parse_subexpr(0)`),
so the operand absorbed every following operator: `7 DIV 2 + 1` grouped as
`7 DIV (2 + 1)` = 2 where MySQL and Spark both give `(7 DIV 2) + 1` = 4.
Thread the caller's precedence through instead, as SqliteDialect already does
for REGEXP / MATCH / GLOB. `Display` emits no parentheses, so a mis-grouped
tree round-trips to the original SQL and the round-trip helpers could not
catch this; the new tests assert on the tree.
Fixes#2460
Environment: Datadog workspace
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments