Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ class AuronSparkTestSettings extends SparkTestSettings {
enableSuite[AuronMiscFunctionsSuite]

enableSuite[AuronStringFunctionsSuite]
// Native levenshtein has a Spark 3.5+ result or schema comparison mismatch.
.exclude("string Levenshtein distance")
// Native substr does not support BinaryType inputs.
// See https://github.com/apache/auron/issues/1724
.exclude("string / binary substring function")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ class AuronSparkTestSettings extends SparkTestSettings {
enableSuite[AuronMiscFunctionsSuite]

enableSuite[AuronStringFunctionsSuite]
// Spark 4 adds the threshold argument, but native levenshtein currently supports only
// two arguments.
.exclude("string Levenshtein distance")
// Native substr does not support BinaryType inputs.
.exclude("string / binary substring function")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ class AuronSparkTestSettings extends SparkTestSettings {
enableSuite[AuronMiscFunctionsSuite]

enableSuite[AuronStringFunctionsSuite]
// Spark 4 adds the threshold argument, but native levenshtein currently supports only
// two arguments.
.exclude("string Levenshtein distance")
// Native substr does not support BinaryType inputs.
.exclude("string / binary substring function")

Expand Down
2 changes: 1 addition & 1 deletion native-engine/auron-planner/proto/auron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ enum ScalarFunction {
Hex=66;
Power=67;
IsNaN=69;
Levenshtein=80;
// Levenshtein=80;
FindInSet=81;
Nvl=82;
Nvl2=83;
Expand Down
3 changes: 1 addition & 2 deletions native-engine/auron-planner/src/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1292,8 +1292,7 @@ impl From<protobuf::ScalarFunction> for Arc<ScalarUDF> {
ScalarFunction::Rpad => f::unicode::rpad(),
ScalarFunction::SplitPart => f::string::split_part(),
ScalarFunction::StartsWith => f::string::starts_with(),
ScalarFunction::Levenshtein => f::string::levenshtein(),

// ScalarFunction::Levenshtein => f::string::levenshtein(),
ScalarFunction::FindInSet => f::unicode::find_in_set(),
ScalarFunction::Strpos => f::unicode::strpos(),
ScalarFunction::Substr => f::unicode::substr(),
Expand Down
1 change: 1 addition & 0 deletions native-engine/datafusion-ext-functions/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ pub fn create_auron_ext_function(
"Spark_StringConcatWs" => Arc::new(spark_strings::string_concat_ws),
"Spark_StringLower" => Arc::new(spark_strings::string_lower),
"Spark_StringUpper" => Arc::new(spark_strings::string_upper),
"Spark_Levenshtein" => Arc::new(spark_strings::spark_levenshtein),
"Spark_InitCap" => Arc::new(spark_initcap::string_initcap),
"Spark_Year" => Arc::new(spark_dates::spark_year),
"Spark_Month" => Arc::new(spark_dates::spark_month),
Expand Down
Loading
Loading