You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yiyu Tian (Jira)" <ji...@apache.org> on 2024/12/10 14:57:00 UTC

[jira] (FLINK-12173) Optimize "SELECT DISTINCT" into Deduplicate with keep first row

    [ https://issues.apache.org/jira/browse/FLINK-12173 ]


    Yiyu Tian deleted comment on FLINK-12173:
    -----------------------------------

was (Author: JIRAUSER307116):
[~jark] the PR is ready for review. Could I get your input?

I don't have access to edit reviewers on Github now. Therefore I'm pinging you directly. 

> 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
>            Assignee: Yiyu Tian
>            Priority: Major
>              Labels: pull-request-available
>
> 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.10#820010)