Skip to content

Commit

Permalink
feat(substrait): modular substrait producer (#13931)
Browse files Browse the repository at this point in the history
* feat(substrait): modular substrait producer

* refactor(substrait): simplify col_ref_offset handling in producer

* refactor(substrait): remove column offset tracking from producer

* docs(substrait): document SubstraitProducer

* refactor: minor cleanup

* feature: remove unused SubstraitPlanningState

BREAKING CHANGE: SubstraitPlanningState is no longer available

* refactor: cargo fmt

* refactor(substrait): consume_ -> handle_

* refactor(substrait): expand match blocks

* refactor: DefaultSubstraitProducer only needs serializer_registry

* refactor: remove unnecessary warning suppression

* fix(substrait): route expr conversion through handle_expr

* cargo fmt
  • Loading branch information
vbarua authored Jan 5, 2025
1 parent ecd9f36 commit 4c898b4
Show file tree
Hide file tree
Showing 5 changed files with 1,295 additions and 1,047 deletions.
3 changes: 3 additions & 0 deletions datafusion/substrait/src/logical_plan/consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ use substrait::proto::{
/// This trait is used to consume Substrait plans, converting them into DataFusion Logical Plans.
/// It can be implemented by users to allow for custom handling of relations, expressions, etc.
///
/// Combined with the [crate::logical_plan::producer::SubstraitProducer] this allows for fully
/// customizable Substrait serde.
///
/// # Example Usage
///
/// ```
Expand Down
1 change: 0 additions & 1 deletion datafusion/substrait/src/logical_plan/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@

pub mod consumer;
pub mod producer;
pub mod state;
Loading

0 comments on commit 4c898b4

Please sign in to comment.