Apache DataFusion SQL Query Engine
fix: add match encode/decode scalar function type (#8089)
Syleechan21b2af126d2a
diff --git a/datafusion/proto/src/logical_plan/from_proto.rs b/datafusion/proto/src/logical_plan/from_proto.rsindex 26bd0163d0..cdb0fe9bda 100644--- a/datafusion/proto/src/logical_plan/from_proto.rs+++ b/datafusion/proto/src/logical_plan/from_proto.rs@@ -46,7 +46,7 @@ use datafusion_expr::{array_to_string, ascii, asin, asinh, atan, atan2, atanh, bit_length, btrim,cardinality, cbrt, ceil, character_length, chr, coalesce, concat_expr,concat_ws_expr, cos, cosh, cot, current_date, current_time, date_bin, date_part,- date_trunc, degrees, digest, exp,+ date_trunc, decode, degrees, digest, encode, exp,expr::{self, InList, Sort, WindowFunction},factorial, floor, from_unixtime, gcd, isnan, iszero, lcm, left, ln, log, log10, log2,logical_plan::{PlanType, StringifiedPlan},@@ -1472,6 +1472,14 @@ pub fn parse_expr(ScalarFunction::Sha384 => Ok(sha384(parse_expr(&args[0], registry)?)),ScalarFunction::Sha512 => Ok(sha512(parse_expr(&args[0], registry)?)),ScalarFunction::Md5 => Ok(md5(parse_expr(&args[0], registry)?)),+ ScalarFunction::Encode => Ok(encode(+ parse_expr(&args[0], registry)?,+ parse_expr(&args[1], registry)?,+ )),+ ScalarFunction::Decode => Ok(decode(+ parse_expr(&args[0], registry)?,+ parse_expr(&args[1], registry)?,+ )),ScalarFunction::NullIf => Ok(nullif(parse_expr(&args[0], registry)?,parse_expr(&args[1], registry)?,