diff --git a/velox/functions/sparksql/Decimal.cpp b/velox/functions/sparksql/Decimal.cpp index 9f8a529b05bd8..0fc8f1ce6b2ff 100644 --- a/velox/functions/sparksql/Decimal.cpp +++ b/velox/functions/sparksql/Decimal.cpp @@ -319,23 +319,6 @@ std::shared_ptr makeRoundDecimal( } } -std::shared_ptr makeAbs( - const std::string& name, - const std::vector& inputArgs) { - VELOX_CHECK_EQ(inputArgs.size(), 1); - auto type = inputArgs[0].type; - if (type->isShortDecimal()) { - return std::make_shared>(); - } - if (type->isLongDecimal()) { - return std::make_shared>(); - } - switch (type->kind()) { - default: - VELOX_FAIL("Not support this type {} in abs", type->kindName()) - } -} - std::shared_ptr makeUnscaledValue( const std::string& name, const std::vector& inputArgs) {