[
https://issues.apache.org/jira/browse/CALCITE-1631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15864705#comment-15864705
]
Jess Balint commented on CALCITE-1631:
--------------------------------------
why not create an interface method {{getUniqueKeys()}} on {{RelOptTable}}
that's free to return null if it can't determine the keys?
> RelMdUniqueKeys doesn't handle TableScan
> ----------------------------------------
>
> Key: CALCITE-1631
> URL: https://issues.apache.org/jira/browse/CALCITE-1631
> Project: Calcite
> Issue Type: Bug
> Components: core
> Reporter: Jess Balint
> Assignee: Julian Hyde
> Priority: Minor
>
> In contrast to {{RelMdColumnUniqueness}}, which delegates to
> {{RelOptTable.isKey()}}, {{RelMdUniqueKeys}} does not handle a {{TableScan}}.
> This can be fixed by exposing the unique keys via the {{RelOptTable}}
> interface and delegating the call in the same fashion.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)