Skip to content

Adding some normalization to relational expressions#487

Merged
knassre-bodo merged 2 commits intomainfrom
kian/basic_norm
Feb 10, 2026
Merged

Adding some normalization to relational expressions#487
knassre-bodo merged 2 commits intomainfrom
kian/basic_norm

Conversation

@knassre-bodo
Copy link
Copy Markdown
Contributor

For both visual clarity and ease of writing optimizations, the following are all now automatically done in relational expressions:

  • Flatten all AND/OR expressions
  • Sort the inputs to AND, OR, EQU and NEQ so that (A==B) is always the same as (B==A)
  • Place parentheses around binary expressions inside other binary expressions for ease of reading

@knassre-bodo
Copy link
Copy Markdown
Contributor Author

Bypassing normal requirements since Snowflake is failing due to flakiness, all normal tests are passing, and these are just cosmetic changes for the time being.

@knassre-bodo knassre-bodo merged commit 15a217e into main Feb 10, 2026
19 of 22 checks passed
@knassre-bodo knassre-bodo deleted the kian/basic_norm branch February 10, 2026 08:02
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