Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchengchenghh committed Jul 4, 2023
1 parent 0a4b182 commit c84f45f
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions velox/functions/sparksql/Decimal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,23 +319,6 @@ std::shared_ptr<exec::VectorFunction> makeRoundDecimal(
}
}

std::shared_ptr<exec::VectorFunction> makeAbs(
const std::string& name,
const std::vector<exec::VectorFunctionArg>& inputArgs) {
VELOX_CHECK_EQ(inputArgs.size(), 1);
auto type = inputArgs[0].type;
if (type->isShortDecimal()) {
return std::make_shared<AbsFunction<int64_t>>();
}
if (type->isLongDecimal()) {
return std::make_shared<AbsFunction<int128_t>>();
}
switch (type->kind()) {
default:
VELOX_FAIL("Not support this type {} in abs", type->kindName())
}
}

std::shared_ptr<exec::VectorFunction> makeUnscaledValue(
const std::string& name,
const std::vector<exec::VectorFunctionArg>& inputArgs) {
Expand Down

0 comments on commit c84f45f

Please sign in to comment.