From 8231f95dbe3306781515c2d432380d6d636467f5 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Thu, 9 Sep 2021 14:04:55 -0400 Subject: [PATCH] Add minimal ballista support --- ballista/rust/core/src/serde/logical_plan/to_proto.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ballista/rust/core/src/serde/logical_plan/to_proto.rs b/ballista/rust/core/src/serde/logical_plan/to_proto.rs index aa7a973dd3402..e2d6f51755871 100644 --- a/ballista/rust/core/src/serde/logical_plan/to_proto.rs +++ b/ballista/rust/core/src/serde/logical_plan/to_proto.rs @@ -407,6 +407,9 @@ impl From<&DataType> for protobuf::arrow_type::ArrowTypeEnum { fractional: *fractional as u64, }) } + DataType::Map(_, _) => { + unimplemented!("Ballista does not yet support Map data type") + } } } } @@ -537,6 +540,7 @@ impl TryFrom<&DataType> for protobuf::scalar_type::Datatype { | DataType::Struct(_) | DataType::Union(_) | DataType::Dictionary(_, _) + | DataType::Map(_, _) | DataType::Decimal(_, _) => { return Err(proto_error(format!( "Error converting to Datatype to scalar type, {:?} is invalid as a datafusion scalar.",