-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[Improve](explode) explode function support multi param #50310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
run buildall |
run buildall |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression P0 && UT Coverage ReportIncrement line coverage Increment coverage report
|
@@ -61,14 +63,21 @@ const std::unordered_map<std::string, std::function<std::unique_ptr<TableFunctio | |||
{"explode_map", TableFunctionCreator<VExplodeMapTableFunction> {}}, | |||
{"explode_json_object", TableFunctionCreator<VExplodeJsonObjectTableFunction> {}}, | |||
{"posexplode", TableFunctionCreator<VPosExplodeTableFunction> {}}, | |||
{"explode", TableFunctionCreator<VExplodeTableFunction> {}}}; | |||
{"explode", TableFunctionCreator<VExplodeV2TableFunction> {}}, | |||
{"explode_old", TableFunctionCreator<VExplodeTableFunction> {}}}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不要用这种old 类似的名字,长期来看,万一后面我们再变动,叫old 没法枚举。
我们叫v1,v2,这样还可以有v3,v4.。。
另外,每个函数后面都得加注释,写明变更的原因,比如是为了支持什么兼容?新功能?之类的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
目前背景, explode_old 函数保留只是为了升级场景,当升级完成后,这个函数可以被移除,所以没有考虑多版本的情况。以及这个函数名称和函数注册地方相关,暂时没做多版本的注册控制,只补充了新版和旧版的控制。
我可以对 VExplodeV2TableFunction 补充下注释信息,写明变更的原因和变更内容。
run buildall |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
run buildall |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression P0 && UT Coverage ReportIncrement line coverage Increment coverage report
|
1 similar comment
BE Regression P0 && UT Coverage ReportIncrement line coverage Increment coverage report
|
What problem does this PR solve?
backport:#48537
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)