[ https://issues.apache.org/jira/browse/FLINK-12173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Flink Jira Bot updated FLINK-12173: ----------------------------------- Labels: auto-deprioritized-major auto-deprioritized-minor (was: auto-deprioritized-major 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. > Optimize "SELECT DISTINCT" into Deduplicate with keep first row > --------------------------------------------------------------- > > Key: FLINK-12173 > URL: https://issues.apache.org/jira/browse/FLINK-12173 > Project: Flink > Issue Type: New Feature > Components: Table SQL / Planner > Reporter: Jark Wu > Priority: Not a Priority > Labels: auto-deprioritized-major, auto-deprioritized-minor > > The following distinct query can be optimized into deduplicate on keys "a, b, > c, d" and keep the first row. > {code:sql} > SELECT DISTINCT a, b, c, d; > {code} > We can optimize this query into Deduplicate to get a better performance than > GroupAggregate. -- This message was sent by Atlassian Jira (v8.20.1#820001)