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

Chunwei Lei updated CALCITE-5149:
---------------------------------
    Description: 
For instance,

columns: [0, 1]
group by [0, 2]



If [0] is unique, then [0, 1] is unique too.

  was:
Currently, RelMdColumnUniqueness always returns null when meeting the Window 
operator. We can improve it by considering its partition keys. For instance,
{code:java}
select empno, rank () over (partition by empno order by empno) as rn from 
emp{code}
If {{empno}} is the primary key of the table, {{empno}} is unique obviously.

 


> Refine RelMdColumnUniqueness for Aggregate by considering intersect keys
> ------------------------------------------------------------------------
>
>                 Key: CALCITE-5149
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5149
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Chunwei Lei
>            Assignee: Chunwei Lei
>            Priority: Major
>
> For instance,
> columns: [0, 1]
> group by [0, 2]
> If [0] is unique, then [0, 1] is unique too.



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

Reply via email to