Skip to content

feat: Support expressions inside Sort relations - #210

Merged
wackywendell merged 1 commit into
mainfrom
edouard.mulliez/ENINT-73/add-expr-in-sort-support
Aug 17, 2026
Merged

feat: Support expressions inside Sort relations#210
wackywendell merged 1 commit into
mainfrom
edouard.mulliez/ENINT-73/add-expr-in-sort-support

Conversation

@edouardmulliez

Copy link
Copy Markdown
Contributor

In substrait, in a SortField, we can use an expression. Up to now, we were only supporting direct references in the SortField.

This change adds support for SortField which are using an expression which is not a direct field reference.

For example:

Root[a, b]
  Sort[(add($0, $1):i32, &AscNullsFirst) => $0, $1]
    Read[table => a:i32, b:i32]"#;

@edouardmulliez
edouardmulliez requested review from a team and wackywendell as code owners August 17, 2026 09:19
In substrait, in a SortField, we can use an expression.
We were only support direct references in the SortField.

This change adds support for SortField which are using an expression
which is not a direct field reference.

For example:
```
Root[a, b]
  Sort[(add($0, $1):i32, &AscNullsFirst) => $0, $1]
    Read[table => a:i32, b:i32]"#;
```
@edouardmulliez
edouardmulliez force-pushed the edouard.mulliez/ENINT-73/add-expr-in-sort-support branch from 97fc1af to 9703557 Compare August 17, 2026 10:43

@wackywendell wackywendell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! This is a great change, shows the abstractions working well. Godo find, much appreciated!

@wackywendell
wackywendell merged commit 12d98d5 into main Aug 17, 2026
4 checks passed
@wackywendell
wackywendell deleted the edouard.mulliez/ENINT-73/add-expr-in-sort-support branch August 17, 2026 16:26
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.

2 participants