Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Mar 27, 2024
1 parent 7efd217 commit b1566c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 4 additions & 1 deletion velox/functions/sparksql/Register.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ void registerFunctions(const std::string& prefix) {
registerFunction<SubstringIndexFunction, Varchar, Varchar, Varchar, int32_t>(
{prefix + "substring_index"});
exec::registerStatefulVectorFunction(
prefix + "concat_ws", concatWsSignatures(), makeConcatWs);
prefix + "concat_ws",
concatWsSignatures(),
makeConcatWs,
exec::VectorFunctionMetadataBuilder().defaultNullBehavior(false).build());

registerFunction<Md5Function, Varchar, Varbinary>({prefix + "md5"});
registerFunction<Sha1HexStringFunction, Varchar, Varbinary>(
Expand Down
4 changes: 0 additions & 4 deletions velox/functions/sparksql/String.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,6 @@ class ConcatWs : public exec::VectorFunction {
public:
explicit ConcatWs(const std::string& separator) : separator_(separator) {}

bool isDefaultNullBehavior() const override {
return false;
}

void apply(
const SelectivityVector& selected,
std::vector<VectorPtr>& args,
Expand Down

0 comments on commit b1566c8

Please sign in to comment.