Skip to content

Commit

Permalink
refactor: use ExprBuilder to consume substrait expr and use macro to …
Browse files Browse the repository at this point in the history
…generate error (apache#8515)

* refactor: use ExprBuilder to consume substrait expr

Signed-off-by: Ruihang Xia <[email protected]>

* use macro to generate error

Signed-off-by: Ruihang Xia <[email protected]>

---------

Signed-off-by: Ruihang Xia <[email protected]>
  • Loading branch information
waynexia authored Dec 14, 2023
1 parent 898911b commit cf2de9b
Show file tree
Hide file tree
Showing 2 changed files with 158 additions and 169 deletions.
3 changes: 3 additions & 0 deletions datafusion/common/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,9 @@ make_error!(not_impl_err, not_impl_datafusion_err, NotImplemented);
// Exposes a macro to create `DataFusionError::Execution`
make_error!(exec_err, exec_datafusion_err, Execution);

// Exposes a macro to create `DataFusionError::Substrait`
make_error!(substrait_err, substrait_datafusion_err, Substrait);

// Exposes a macro to create `DataFusionError::SQL`
#[macro_export]
macro_rules! sql_err {
Expand Down
Loading

0 comments on commit cf2de9b

Please sign in to comment.