Dylan He created FLINK-35998:
--------------------------------
Summary: 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
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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)