From 6a01e21d23a09865dc110b7660a2f94c0dbb3d3e Mon Sep 17 00:00:00 2001 From: jayzhan211 Date: Tue, 18 Jul 2023 09:08:02 +0800 Subject: [PATCH] add proto only Signed-off-by: jayzhan211 --- datafusion/proto/proto/datafusion.proto | 4 +++- datafusion/proto/src/generated/pbjson.rs | 16 +++++++++------- datafusion/proto/src/generated/prost.rs | 14 +++++++------- 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/datafusion/proto/proto/datafusion.proto b/datafusion/proto/proto/datafusion.proto index a1caa4c621850..8192a403d33ea 100644 --- a/datafusion/proto/proto/datafusion.proto +++ b/datafusion/proto/proto/datafusion.proto @@ -563,10 +563,12 @@ enum ScalarFunction { ArrayToString = 97; Cardinality = 98; TrimArray = 99; - ArrayContains = 100; Encode = 101; Decode = 102; Cot = 103; + ArrayHas = 104; + ArrayHasAny = 105; + ArrayHasAll = 106; } message ScalarFunctionNode { diff --git a/datafusion/proto/src/generated/pbjson.rs b/datafusion/proto/src/generated/pbjson.rs index 860c00fec6e2c..05bfbd089dfe4 100644 --- a/datafusion/proto/src/generated/pbjson.rs +++ b/datafusion/proto/src/generated/pbjson.rs @@ -18064,12 +18064,12 @@ impl serde::Serialize for ScalarFunction { Self::ArrayToString => "ArrayToString", Self::Cardinality => "Cardinality", Self::TrimArray => "TrimArray", - Self::ArrayHasAll => "ArrayHasAll", - Self::ArrayHas => "ArrayHas", - Self::ArrayHasAny => "ArrayHasAny", Self::Encode => "Encode", Self::Decode => "Decode", Self::Cot => "Cot", + Self::ArrayHas => "ArrayHas", + Self::ArrayHasAny => "ArrayHasAny", + Self::ArrayHasAll => "ArrayHasAll", }; serializer.serialize_str(variant) } @@ -18181,10 +18181,12 @@ impl<'de> serde::Deserialize<'de> for ScalarFunction { "ArrayToString", "Cardinality", "TrimArray", - "ArrayContains", "Encode", "Decode", "Cot", + "ArrayHas", + "ArrayHasAny", + "ArrayHasAll", ]; struct GeneratedVisitor; @@ -18327,12 +18329,12 @@ impl<'de> serde::Deserialize<'de> for ScalarFunction { "ArrayToString" => Ok(ScalarFunction::ArrayToString), "Cardinality" => Ok(ScalarFunction::Cardinality), "TrimArray" => Ok(ScalarFunction::TrimArray), - "ArrayHasAll" => Ok(ScalarFunction::ArrayHasAll), - "ArrayHasAny" => Ok(ScalarFunction::ArrayHasAny), - "ArrayHas" => Ok(ScalarFunction::ArrayHas), "Encode" => Ok(ScalarFunction::Encode), "Decode" => Ok(ScalarFunction::Decode), "Cot" => Ok(ScalarFunction::Cot), + "ArrayHas" => Ok(ScalarFunction::ArrayHas), + "ArrayHasAny" => Ok(ScalarFunction::ArrayHasAny), + "ArrayHasAll" => Ok(ScalarFunction::ArrayHasAll), _ => Err(serde::de::Error::unknown_variant(value, FIELDS)), } } diff --git a/datafusion/proto/src/generated/prost.rs b/datafusion/proto/src/generated/prost.rs index b6062a5e10c6a..f50754494d1db 100644 --- a/datafusion/proto/src/generated/prost.rs +++ b/datafusion/proto/src/generated/prost.rs @@ -2262,12 +2262,12 @@ pub enum ScalarFunction { ArrayToString = 97, Cardinality = 98, TrimArray = 99, - ArrayHasAll = 100, Encode = 101, Decode = 102, Cot = 103, ArrayHas = 104, ArrayHasAny = 105, + ArrayHasAll = 106, } impl ScalarFunction { /// String value of the enum field names used in the ProtoBuf definition. @@ -2376,12 +2376,12 @@ impl ScalarFunction { ScalarFunction::ArrayToString => "ArrayToString", ScalarFunction::Cardinality => "Cardinality", ScalarFunction::TrimArray => "TrimArray", - ScalarFunction::ArrayHasAll => "ArrayHasAll", - ScalarFunction::ArrayHasAny => "ArrayHasAny", - ScalarFunction::ArrayHas => "ArrayHas", ScalarFunction::Encode => "Encode", ScalarFunction::Decode => "Decode", ScalarFunction::Cot => "Cot", + ScalarFunction::ArrayHas => "ArrayHas", + ScalarFunction::ArrayHasAny => "ArrayHasAny", + ScalarFunction::ArrayHasAll => "ArrayHasAll", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2487,12 +2487,12 @@ impl ScalarFunction { "ArrayToString" => Some(Self::ArrayToString), "Cardinality" => Some(Self::Cardinality), "TrimArray" => Some(Self::TrimArray), - "ArrayHasAll" => Some(Self::ArrayHasAll), - "ArrayHasAny" => Some(Self::ArrayHasAny), - "ArrayHas" => Some(Self::ArrayHas), "Encode" => Some(Self::Encode), "Decode" => Some(Self::Decode), "Cot" => Some(Self::Cot), + "ArrayHas" => Some(Self::ArrayHas), + "ArrayHasAny" => Some(Self::ArrayHasAny), + "ArrayHasAll" => Some(Self::ArrayHasAll), _ => None, } }