You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Vladimir Sitnikov (Jira)" <ji...@apache.org> on 2020/09/02 19:26:00 UTC

[jira] [Commented] (CALCITE-4218) Clarify RelMetadataQuery#getDistribution nullability

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

Vladimir Sitnikov commented on CALCITE-4218:
--------------------------------------------

I mean methods like {{org.apache.calcite.rel.metadata.RelMetadataQuery#getDistribution}} and methods like {{org.apache.calcite.rel.metadata.RelMdDistribution#distribution(org.apache.calcite.rel.core.TableScan, org.apache.calcite.rel.metadata.RelMetadataQuery)}}

I know there was a fix recently by [~rkondakov]: https://issues.apache.org/jira/browse/CALCITE-3969 which goes for ANY as a default distribution.

If you think we should keep ANY vs null distinction for getDistribution, then we should probably revert CALCITE-3969 or do something with it.

> Clarify RelMetadataQuery#getDistribution nullability
> ----------------------------------------------------
>
>                 Key: CALCITE-4218
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4218
>             Project: Calcite
>          Issue Type: Sub-task
>          Components: core
>    Affects Versions: 1.25.0
>            Reporter: Vladimir Sitnikov
>            Priority: Major
>
> It looks like {{null}} is the same as {{RelDistributions.ANY}}, so we might want to make {{RelDistribution}} non-nullable.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)