Skip to content

Conversation

NickCrews
Copy link
Contributor

Before, we only dropped constant sort values if

  • it was an EXACT Literal. if it was derived, eg ibis.literal(5) + 1, then we wouldn't.
  • if the merge_select_select decided to return the original select instead of merging them (eg because of a window function, unnest, etc), then we wouldn't see this optimization.

This is a followup to a TODO that I found at 7a6f0a1#diff-2719b402427dca65945905bfc259790600013287258e555367581729c40d837eR323-R328

Before, we only dropped constant sort values if
- it was an EXACT Literal. if it was derived, eg `ibis.literal(5) + 1`, then we wouldn't.
- if the merge_select_select decided to return the original select instead of merging them (eg because of a window function, unnest, etc), then we wouldn't see this optimization.
@github-actions github-actions bot added tests Issues or PRs related to tests sql Backends that generate SQL labels Sep 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sql Backends that generate SQL tests Issues or PRs related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant