Skip to content

CI check only (fork): fix/safe-sub-parens - #1

Open
Rodrigo-Palma wants to merge 1 commit into
mainfrom
fix/safe-sub-parens
Open

Rodrigo-Palma wants to merge 1 commit into
mainfrom
fix/safe-sub-parens

Conversation

@Rodrigo-Palma

Copy link
Copy Markdown
Owner

Internal PR on my own fork, opened only to run this repository's CI on the branch of the upstream PR, whose workflow runs are waiting on maintainer approval. Not for merge. SQLMesh#6074

…ounding operators

The optimizer collapses the CASE built by SAFE_ADD/SAFE_SUB into its ELSE
branch without parentheses, so an enclosing operator swallows an operand.
Emit the ELSE arithmetic as an explicit Paren. SAFE_DIV now returns its
quotient wrapped in a Paren so x / @SAFE_DIV(a, b) keeps its grouping.

Closes SQLMesh#5649

Signed-off-by: Rodrigo-Palma <email.rodrigopalma@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant