@@ -72,8 +72,6 @@ pub enum BuiltinScalarFunction {
72
72
Cos ,
73
73
/// cos
74
74
Cosh ,
75
- /// Decode
76
- Decode ,
77
75
/// degrees
78
76
Degrees ,
79
77
/// Digest
@@ -351,7 +349,6 @@ impl BuiltinScalarFunction {
351
349
BuiltinScalarFunction :: Coalesce => Volatility :: Immutable ,
352
350
BuiltinScalarFunction :: Cos => Volatility :: Immutable ,
353
351
BuiltinScalarFunction :: Cosh => Volatility :: Immutable ,
354
- BuiltinScalarFunction :: Decode => Volatility :: Immutable ,
355
352
BuiltinScalarFunction :: Degrees => Volatility :: Immutable ,
356
353
BuiltinScalarFunction :: Exp => Volatility :: Immutable ,
357
354
BuiltinScalarFunction :: Factorial => Volatility :: Immutable ,
@@ -707,18 +704,6 @@ impl BuiltinScalarFunction {
707
704
BuiltinScalarFunction :: Digest => {
708
705
utf8_or_binary_to_binary_type ( & input_expr_types[ 0 ] , "digest" )
709
706
}
710
- BuiltinScalarFunction :: Decode => Ok ( match input_expr_types[ 0 ] {
711
- Utf8 => Binary ,
712
- LargeUtf8 => LargeBinary ,
713
- Binary => Binary ,
714
- LargeBinary => LargeBinary ,
715
- Null => Null ,
716
- _ => {
717
- return plan_err ! (
718
- "The decode function can only accept utf8 or binary."
719
- ) ;
720
- }
721
- } ) ,
722
707
BuiltinScalarFunction :: SplitPart => {
723
708
utf8_to_str_type ( & input_expr_types[ 0 ] , "split_part" )
724
709
}
@@ -1023,15 +1008,6 @@ impl BuiltinScalarFunction {
1023
1008
] ,
1024
1009
self . volatility ( ) ,
1025
1010
) ,
1026
- BuiltinScalarFunction :: Decode => Signature :: one_of (
1027
- vec ! [
1028
- Exact ( vec![ Utf8 , Utf8 ] ) ,
1029
- Exact ( vec![ LargeUtf8 , Utf8 ] ) ,
1030
- Exact ( vec![ Binary , Utf8 ] ) ,
1031
- Exact ( vec![ LargeBinary , Utf8 ] ) ,
1032
- ] ,
1033
- self . volatility ( ) ,
1034
- ) ,
1035
1011
BuiltinScalarFunction :: DateTrunc => Signature :: one_of (
1036
1012
vec ! [
1037
1013
Exact ( vec![ Utf8 , Timestamp ( Nanosecond , None ) ] ) ,
@@ -1437,9 +1413,6 @@ fn aliases(func: &BuiltinScalarFunction) -> &'static [&'static str] {
1437
1413
BuiltinScalarFunction :: SHA384 => & [ "sha384" ] ,
1438
1414
BuiltinScalarFunction :: SHA512 => & [ "sha512" ] ,
1439
1415
1440
- // encode/decode
1441
- BuiltinScalarFunction :: Decode => & [ "decode" ] ,
1442
-
1443
1416
// other functions
1444
1417
BuiltinScalarFunction :: ArrowTypeof => & [ "arrow_typeof" ] ,
1445
1418
0 commit comments