[ https://issues.apache.org/jira/browse/CALCITE-4218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17189669#comment-17189669 ]
Vladimir Sitnikov commented on CALCITE-4218: -------------------------------------------- Ok, let me see what happens if I specify {{@Nullable}} for all the metadata-like methods, including distribution ones. I just thought that {{RelDistributions.ANY}} is exactly the same as {{null}}, and we could teach {{RelMetadataQuery}} facade to make {{null -> ANY}} conversion, so the resulting value is easier to use in Java. > 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)