-
Notifications
You must be signed in to change notification settings - Fork 33
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
Rescope expression then the identity is a struct dtype #1887
Conversation
# Conflicts: # Cargo.lock # Cargo.toml # vortex-expr/Cargo.toml # vortex-expr/src/lib.rs
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.
Wanted to unblock the other PRs here so I went ahead and renamed the "split" to partition and turned the type alias into a struct.
Please add more docstrings in future! They will become mandatory under #1905
vortex-expr/src/select.rs
Outdated
@@ -23,6 +23,14 @@ pub struct Select { | |||
child: ExprRef, | |||
} | |||
|
|||
pub fn select(columns: Vec<Field>, child: ExprRef) -> ExprRef { |
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 thought these were fields, not columns?
use crate::traversal::{FoldChildren, FoldUp, FolderMut, Node}; | ||
use crate::{ExprRef, GetItem, Pack}; | ||
|
||
pub struct ExprSimplify(); |
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.
Remove ()
Defines a transform on expression with an scope type of struct(..). The transform splits the expr in to a series of expressions that can be evaluated only using a single field of the struct, and a combination expr which combines the series of smaller expr into the original expr.
This is used #1893.