[ 
https://issues.apache.org/jira/browse/CALCITE-5162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated CALCITE-5162:
------------------------------------
    Labels: pull-request-available  (was: )

> RelMdUniqueKeys can return more precise unique keys for Aggregate
> -----------------------------------------------------------------
>
>                 Key: CALCITE-5162
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5162
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Chunwei Lei
>            Assignee: Chunwei Lei
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently, RelMdUniqueKeys always returns group by keys as the unique key. 
> However, it can return more precise unique keys by looking through group by 
> keys. For instance:
> {code:java}
> select deptno, deptname, count(*) from dept group by deptno, deptname;{code}
> RelMdUniqueKeys can return {{deptno}} as the unique key instead of (deptno, 
> deptname) if {{deptno}} is unique.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to