Skip to content

Commit 40535ff

Browse files
Myx778claude
authored andcommitted
Run make format: fix syntax error and apply Spotless
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 09fbad5 commit 40535ff

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

native/spark-expr/src/comet_scalar_funcs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ pub fn create_comet_physical_fun_with_eval_mode(
200200
let func = Arc::new(crate::string_funcs::spark_levenshtein);
201201
make_comet_scalar_udf!("levenshtein", func, without data_type)
202202
}
203-
}
204203
_ => registry.udf(fun_name).map_err(|e| {
205204
DataFusionError::Execution(format!(
206205
"Function {fun_name} not found in the registry: {e}",

spark/src/main/scala/org/apache/comet/serde/strings.scala

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,8 @@ object CometLevenshtein extends CometExpressionSerde[Levenshtein] {
102102
inputs: Seq[Attribute],
103103
binding: Boolean): Option[Expr] = {
104104
val childExprs = expr.children.map(exprToProtoInternal(_, inputs, binding))
105-
val optExpr = scalarFunctionExprToProtoWithReturnType(
106-
"levenshtein",
107-
IntegerType,
108-
false,
109-
childExprs: _*)
105+
val optExpr =
106+
scalarFunctionExprToProtoWithReturnType("levenshtein", IntegerType, false, childExprs: _*)
110107
optExprWithInfo(optExpr, expr, expr.children: _*)
111108
}
112109
}

0 commit comments

Comments
 (0)