Skip to content

Apache DataFusion SQL Query Engine

make datafusion-proto match exhaustive (#2567)

Andy Grove635d659c0517
diff --git a/datafusion/proto/src/to_proto.rs b/datafusion/proto/src/to_proto.rs
index 5970a3c30a..a5f6ffbb0f 100644
--- a/datafusion/proto/src/to_proto.rs
+++ b/datafusion/proto/src/to_proto.rs
@@ -713,7 +713,15 @@ impl TryFrom<&Expr> for protobuf::LogicalExprNode {
Expr::Wildcard => Self {
expr_type: Some(ExprType::Wildcard(true)),
},
- _ => unimplemented!(),
+ Expr::ScalarSubquery(_) | Expr::InSubquery { .. } | Expr::Exists { .. } => {
+ // we would need to add logical plan operators to datafusion.proto to support this
+ // see discussion in https://github.com/apache/arrow-datafusion/issues/2565
+ unimplemented!("subquery expressions are not supported yet")
+ }
+ Expr::QualifiedWildcard { .. }
+ | Expr::GetIndexedField { .. }
+ | Expr::TryCast { .. }
+ | Expr::GroupingSet(_) => unimplemented!(),
};
Ok(expr_node)