[
https://issues.apache.org/jira/browse/FLINK-35998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dylan He updated FLINK-35998:
-----------------------------
Description: Currently, some built-in functions, such as {{{}*IFNULL* and
*COALESCE*{}}}, use the *{{CommonArgumentStrategy}}* in their
inputTypeStrategy, which will find a common type among all arguments. However,
when multiple arguments take this strategy in one function, redundant search
will be performed, obviously this is unnecessary and harms the efficiency of
type inference. (was: Currently, some built-in functions, such as {{{}*IFNULL*
and *COALESCE*{}}}, use the *{{CommonArgumentStrategy}}* in their
inputTypeStrategy, which will find a common type among all arguments. However,
when multiple arguments take this strategy in one function, redundant search
will be performed, obviously this is unnecessary and harms the efficiency of
type inference.
A feasible improvement approach is to adopt {*}{{CommonInputTypeStrategy}}{*}.
Unlike its predecessor, this strategy performs the search of the common type
just once and subsequently replicates the result to all related arguments.)
> Duplicate common type search in type inference
> ----------------------------------------------
>
> Key: FLINK-35998
> URL: https://issues.apache.org/jira/browse/FLINK-35998
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / Planner
> Reporter: Dylan He
> Priority: Major
>
> Currently, some built-in functions, such as {{{}*IFNULL* and *COALESCE*{}}},
> use the *{{CommonArgumentStrategy}}* in their inputTypeStrategy, which will
> find a common type among all arguments. However, when multiple arguments take
> this strategy in one function, redundant search will be performed, obviously
> this is unnecessary and harms the efficiency of type inference.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)