[ 
https://issues.apache.org/jira/browse/FLINK-8739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16706595#comment-16706595
 ] 

Dian Fu commented on FLINK-8739:
--------------------------------

[~walterddr] Thanks a lot. I'll provide a PR ASAP and looking forward to your 
review.

> Optimize runtime support for distinct filter
> --------------------------------------------
>
>                 Key: FLINK-8739
>                 URL: https://issues.apache.org/jira/browse/FLINK-8739
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table API & SQL
>            Reporter: Rong Rong
>            Priority: Major
>
> Possible optimizaitons:
> 1. Decouple distinct map and actual accumulator so that they can separately 
> be created in codegen.
> 2. Reuse same distinct accumulator for filtering, e.g. `SELECT 
> COUNT(DISTINCT(a)), SUM(DISTINCT(a))` should reuse the same distinct map.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to