[ https://issues.apache.org/jira/browse/FLINK-10448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Flink Jira Bot updated FLINK-10448: ----------------------------------- Labels: auto-deprioritized-major auto-deprioritized-minor auto-unassigned (was: auto-deprioritized-major auto-unassigned stale-minor) Priority: Not a Priority (was: Minor) This issue was labeled "stale-minor" 7 days ago and has not received any updates so it is being deprioritized. If this ticket is actually Minor, please raise the priority and ask a committer to assign you the issue or revive the public discussion. > VALUES clause is translated into a separate operator per value > -------------------------------------------------------------- > > Key: FLINK-10448 > URL: https://issues.apache.org/jira/browse/FLINK-10448 > Project: Flink > Issue Type: Bug > Components: Table SQL / API > Affects Versions: 1.6.1 > Reporter: Timo Walther > Priority: Not a Priority > Labels: auto-deprioritized-major, auto-deprioritized-minor, > auto-unassigned > > It seems that a SQL VALUES clause uses one operator per value under certain > conditions which leads to a complicated job graph. Given that we need to > compile code for every operator in the open method and have other overhead as > well, this looks inefficient to me. > For example, the following query creates and unions 6 operators together: > {code} > SELECT * > FROM ( > VALUES > (1, 'Bob', CAST(0 AS BIGINT)), > (22, 'Alice', CAST(0 AS BIGINT)), > (42, 'Greg', CAST(0 AS BIGINT)), > (42, 'Greg', CAST(0 AS BIGINT)), > (42, 'Greg', CAST(0 AS BIGINT)), > (1, 'Bob', CAST(0 AS BIGINT))) > AS UserCountTable(user_id, user_name, user_count) > {code} -- This message was sent by Atlassian Jira (v8.20.1#820001)