You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Dylan He (Jira)" <ji...@apache.org> on 2024/08/07 10:06:00 UTC
[jira] [Created] (FLINK-35998) Duplicate common type search in type inference
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)