You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
move the Translate, SubstrIndex, FindInSet functions to datafusion-functions (apache#9864)
* Fix to_timestamp benchmark
* Remove reference to simd and nightly build as simd is no longer an available feature in DataFusion and building with nightly may not be a good recommendation when getting started.
* Fixed missing trim() function.
* Create unicode module in datafusion/functions/src/unicode and unicode_expressions feature flag, move char_length function
* move Left, Lpad, Reverse, Right, Rpad functions to datafusion_functions
* move strpos, substr functions to datafusion_functions
* move the Translate, SubstrIndex, FindInSet functions to new datafusion-functions crate
* Test code cleanup
* unicode_expressions Cargo.toml updates.
---------
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
Copy file name to clipboardExpand all lines: datafusion/expr/src/expr_fn.rs
-7Lines changed: 0 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -576,7 +576,6 @@ scalar_expr!(Log, log, base x, "logarithm of a `x` for a particular `base`");
576
576
577
577
scalar_expr!(InitCap, initcap, string,"converts the first letter of each word in `string` in uppercase and the remaining characters in lowercase");
578
578
scalar_expr!(EndsWith, ends_with, string suffix,"whether the `string` ends with the `suffix`");
579
-
scalar_expr!(Translate, translate, string from to,"replaces the characters in `from` with the counterpart in `to`");
580
579
nary_scalar_expr!(Coalesce, coalesce,"returns `coalesce(args...)`, which evaluates to the value of the first [Expr] which is not NULL");
581
580
//there is a func concat_ws before, so use concat_ws_expr as name.c
582
581
nary_scalar_expr!(
@@ -593,9 +592,6 @@ scalar_expr!(
593
592
"returns true if a given number is +0.0 or -0.0 otherwise returns false"
594
593
);
595
594
596
-
scalar_expr!(SubstrIndex, substr_index, string delimiter count,"Returns the substring from str before count occurrences of the delimiter");
597
-
scalar_expr!(FindInSet, find_in_set,str strlist,"Returns a value in the range of 1 to N if the string str is in the string list strlist consisting of N substrings");
598
-
599
595
/// Create a CASE WHEN statement with literal WHEN expressions for comparison to the base expression.
0 commit comments