Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhli1142015 committed Dec 27, 2024
1 parent 93b9831 commit ee453f2
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions velox/functions/sparksql/In.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,6 @@ void registerInFn(const std::string& prefix) {
registerFunction<InFunctionOuter<T>::template Inner, bool, T, Array<T>>(
{prefix + "in"});
}

void registerInFnForDecimal(const std::string& prefix) {
registerFunction<
InFunctionOuter<ShortDecimal<P1, S1>>::template Inner,
bool,
ShortDecimal<P1, S1>,
Array<ShortDecimal<P1, S1>>>({prefix + "in"});
registerFunction<
InFunctionOuter<LongDecimal<P1, S1>>::template Inner,
bool,
LongDecimal<P1, S1>,
Array<LongDecimal<P1, S1>>>({prefix + "in"});
}

} // namespace

void registerIn(const std::string& prefix) {
Expand All @@ -156,7 +142,8 @@ void registerIn(const std::string& prefix) {
registerInFn<Varchar>(prefix);
registerInFn<Timestamp>(prefix);
registerInFn<Date>(prefix);
registerInFnForDecimal(prefix);
registerInFn<ShortDecimal<P1, S1>>(prefix);
registerInFn<LongDecimal<P1, S1>>(prefix);
}

} // namespace facebook::velox::functions::sparksql

0 comments on commit ee453f2

Please sign in to comment.