Skip to content

Commit

Permalink
update register
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangstar333 committed Jul 25, 2024
1 parent ad8709d commit daafe3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/vec/functions/function_split_by_regexp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ struct ThreeArgumentImpl {
}
};

void register_function_random(SimpleFunctionFactory& factory) {
void register_function_split_by_regexp(SimpleFunctionFactory& factory) {
factory.register_function<SplitByRegexp<TwoArgumentImpl>>();
factory.register_function<SplitByRegexp<ThreeArgumentImpl>>();
}
Expand Down
2 changes: 2 additions & 0 deletions be/src/vec/functions/simple_function_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ void register_function_tokenize(SimpleFunctionFactory& factory);
void register_function_url(SimpleFunctionFactory& factory);
void register_function_ip(SimpleFunctionFactory& factory);
void register_function_multi_match(SimpleFunctionFactory& factory);
void register_function_split_by_regexp(SimpleFunctionFactory& factory);

class SimpleFunctionFactory {
using Creator = std::function<FunctionBuilderPtr()>;
Expand Down Expand Up @@ -292,6 +293,7 @@ class SimpleFunctionFactory {
register_function_ignore(instance);
register_function_variant_element(instance);
register_function_multi_match(instance);
register_function_split_by_regexp(instance);
});
return instance;
}
Expand Down

0 comments on commit daafe3c

Please sign in to comment.