-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(substrait): add set operations to consumer, update substrait to 0.45.0
#12863
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -172,6 +172,7 @@ pub fn to_substrait_extended_expr( | |
} | ||
|
||
/// Convert DataFusion LogicalPlan to Substrait Rel | ||
#[allow(deprecated)] | ||
pub fn to_substrait_rel( | ||
plan: &LogicalPlan, | ||
ctx: &SessionContext, | ||
|
@@ -227,6 +228,7 @@ pub fn to_substrait_rel( | |
advanced_extension: None, | ||
read_type: Some(ReadType::VirtualTable(VirtualTable { | ||
values: vec![], | ||
expressions: vec![], | ||
})), | ||
}))), | ||
})) | ||
|
@@ -263,7 +265,10 @@ pub fn to_substrait_rel( | |
best_effort_filter: None, | ||
projection: None, | ||
advanced_extension: None, | ||
read_type: Some(ReadType::VirtualTable(VirtualTable { values })), | ||
read_type: Some(ReadType::VirtualTable(VirtualTable { | ||
values, | ||
expressions: vec![], | ||
})), | ||
}))), | ||
})) | ||
} | ||
|
@@ -359,6 +364,7 @@ pub fn to_substrait_rel( | |
rel_type: Some(RelType::Aggregate(Box::new(AggregateRel { | ||
common: None, | ||
input: Some(input), | ||
grouping_expressions: vec![], | ||
groupings, | ||
measures, | ||
advanced_extension: None, | ||
|
@@ -377,8 +383,10 @@ pub fn to_substrait_rel( | |
rel_type: Some(RelType::Aggregate(Box::new(AggregateRel { | ||
common: None, | ||
input: Some(input), | ||
grouping_expressions: vec![], | ||
groupings: vec![Grouping { | ||
grouping_expressions: grouping, | ||
expression_references: vec![], | ||
}], | ||
measures: vec![], | ||
advanced_extension: None, | ||
|
@@ -764,6 +772,7 @@ pub fn operator_to_name(op: Operator) -> &'static str { | |
} | ||
} | ||
|
||
#[allow(deprecated)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this deprecated use required for changes in the substrait dependency? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think so.. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, it's not a rush, and might be better to stick with the old approach for now for producers until consumers have had a chance to catch up. The new approach puts the E.g. instead of...
You would have...
This makes it easier to recognize something like a rollup:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
+1 for retaining both for backwards compatability I've created #12957 to track that we deferred implementing this. |
||
pub fn parse_flat_grouping_exprs( | ||
ctx: &SessionContext, | ||
exprs: &[Expr], | ||
|
@@ -776,6 +785,7 @@ pub fn parse_flat_grouping_exprs( | |
.collect::<Result<Vec<_>>>()?; | ||
Ok(Grouping { | ||
grouping_expressions, | ||
expression_references: vec![], | ||
}) | ||
} | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.