Skip to content
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

Minimal expressions API for vortex #318

Merged
merged 7 commits into from
May 15, 2024
Merged

Minimal expressions API for vortex #318

merged 7 commits into from
May 15, 2024

Conversation

jdcasale
Copy link
Contributor

@jdcasale jdcasale commented May 15, 2024

Minimal set of expressions and operators for defining predicates over vortex arrays.

This does not express recursive expression trees, but instead restricts the algebra to disjunction-of-conjunction (OR-of-AND) of field/value comparison operations.

I tried to restrict this to a manageable set of expressions that we will definitely need as to avoid bloat; the expectation here is that this may grow over time.

Subsequent changes will introduce:

  • A pushdown API for vortex arrays
  • Array pushdown implementations for the various expressions

Supercedes #308

@jdcasale jdcasale mentioned this pull request May 15, 2024
4 tasks
vortex-expr/src/display.rs Outdated Show resolved Hide resolved
vortex-expr/src/expression_fns.rs Outdated Show resolved Hide resolved
vortex-expr/src/expressions.rs Outdated Show resolved Hide resolved
vortex-expr/src/expressions.rs Outdated Show resolved Hide resolved
vortex-expr/src/expressions.rs Outdated Show resolved Hide resolved
vortex-expr/src/expressions.rs Outdated Show resolved Hide resolved
vortex-expr/src/literal.rs Outdated Show resolved Hide resolved
vortex-expr/src/scalar.rs Outdated Show resolved Hide resolved
vortex-expr/src/scalar.rs Outdated Show resolved Hide resolved
vortex-expr/src/display.rs Outdated Show resolved Hide resolved
@jdcasale jdcasale marked this pull request as ready for review May 15, 2024 13:01
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum Value {
/// A named reference to a qualified field in a dtype.
Field(FieldName),
Copy link
Contributor

Choose a reason for hiding this comment

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

As discussed offline, this will need to turn into a FieldPath

@gatesn gatesn merged commit ae401e9 into develop May 15, 2024
1 check passed
@gatesn gatesn deleted the jc/expr2 branch May 15, 2024 15:22
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