-
Notifications
You must be signed in to change notification settings - Fork 113
Generalize expression partition to annotationed expressions #3803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Nicholas Gates <nick@nickgates.com>
Signed-off-by: Nicholas Gates <nick@nickgates.com>
| .entry(node) | ||
| .or_default() | ||
| .extend(annotations); | ||
| Ok(TraversalOrder::Skip) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find this unexpected from the name of the visitor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect annotate to either continue down or return a TraversalOrder here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is refactoring of the previous logic where we would always continue on empty annotations and skip immediately when we had one present
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is not true, this has been generalised
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it's perhaps a little odd to skip at the first sign of an annotation..
Signed-off-by: Nicholas Gates <nick@nickgates.com>
Signed-off-by: Nicholas Gates <nick@nickgates.com>
Signed-off-by: Nicholas Gates <nick@nickgates.com>
Signed-off-by: Nicholas Gates <nick@nickgates.com>
Signed-off-by: Nicholas Gates <nick@nickgates.com>
Benchmarks: TPC-H on NVMETable of Results
|
Benchmarks: TPC-H on S3Table of Results
|
Benchmarks: compressTable of Results
|
Benchmarks: Clickbench on NVMETable of Results
|
Previously, expression partitioning only worked for fields accessed on the root scope. This change allows an expression to be partitioned by an arbitrary set of annotations.
This means custom expressions can be grouped into a partition and pulled out separately from the rest.