[
https://issues.apache.org/jira/browse/FLINK-41380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18141480#comment-18141480
]
Sergey Nuyanzin commented on FLINK-41380:
-----------------------------------------
Merged as
[9cc9a3ec47f6c08870ec5aa36d4631a3e48d3e4c|https://github.com/apache/flink/commit/9cc9a3ec47f6c08870ec5aa36d4631a3e48d3e4c]
> Make generated code in case of CASE ... WHEN friendlier to code splitter
> ------------------------------------------------------------------------
>
> Key: FLINK-41380
> URL: https://issues.apache.org/jira/browse/FLINK-41380
> Project: Flink
> Issue Type: Technical Debt
> Components: Table SQL / Runtime
> Reporter: Sergey Nuyanzin
> Assignee: Sergey Nuyanzin
> Priority: Major
> Labels: pull-request-available
>
> The problem with generated code for {{CASE ... WHEN}} is that it is a nested
> {{if..else}} which is very bad adapted to code splitter
> as a result the output of code splitter grows fast
> for instance
> {noformat}
> amount of conditions chars lines fields methods depth
> 2 5080 182 4 4 5
> 3 6311 253 25 4 6
> 4 7815 330 31 6 7
> 5 9153 388 37 7 8
> 10 15089 658 67 7 13
> 100 935230 6626 607 471 3
> 1000 242427582 100838 6007 10858 3
> {noformat}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)