Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rui-mo committed Mar 20, 2024
1 parent 8e4fa85 commit 9263b90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ void registerSimpleFunctions(const std::string& prefix) {
registerFunction<
DecimalAbsFunction,
LongDecimal<P1, S1>,
LongDecimal<P1, S1>>({prefix + "abs"});
LongDecimal<P1, S1>>({prefix + "decimal_abs"});
registerFunction<
DecimalAbsFunction,
ShortDecimal<P1, S1>,
ShortDecimal<P1, S1>>({prefix + "abs"});
ShortDecimal<P1, S1>>({prefix + "decimal_abs"});

registerUnaryFloatingPoint<NegateFunction>({prefix + "negate"});
registerFunction<NegateFunction, LongDecimal<P1, S1>, LongDecimal<P1, S1>>(
Expand Down
2 changes: 1 addition & 1 deletion velox/functions/sparksql/RegisterArithmetic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void registerArithmeticFunctions(const std::string& prefix) {
registerFunction<sparksql::Log10Function, double, double>({prefix + "log10"});
registerRandFunctions(prefix);

VELOX_REGISTER_VECTOR_FUNCTION(udf_decimal_add, prefix + "add");
VELOX_REGISTER_VECTOR_FUNCTION(udf_decimal_add, prefix + "decimal_add");
VELOX_REGISTER_VECTOR_FUNCTION(udf_decimal_sub, prefix + "subtract");
VELOX_REGISTER_VECTOR_FUNCTION(udf_decimal_mul, prefix + "multiply");
VELOX_REGISTER_VECTOR_FUNCTION(udf_decimal_div, prefix + "divide");
Expand Down

0 comments on commit 9263b90

Please sign in to comment.