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 Apr 8, 2024
1 parent f02e5fb commit 721ffce
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 @@ -217,7 +217,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 721ffce

Please sign in to comment.