[ https://issues.apache.org/jira/browse/CALCITE-4215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17189798#comment-17189798 ]
Danny Chen commented on CALCITE-4215: ------------------------------------- I want to share the case of row count from the Flink side, because it can return null, NPEs often happens from time to time. In order to avoid the NPEs, we return -1 when we can not infer the specific row count number. Thus, the codes querying it needs to identify if the row count is -1 every time we need to handle it. > Ensure org.apache.calcite.schema.Statistic uses null vs emptyList > appropriately > ------------------------------------------------------------------------------- > > Key: CALCITE-4215 > URL: https://issues.apache.org/jira/browse/CALCITE-4215 > Project: Calcite > Issue Type: Sub-task > Components: core > Affects Versions: 1.25.0 > Reporter: Vladimir Sitnikov > Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > null: statistic is *not* *known* > emptyList: statistic is *known*, and the value is *empty* (e.g. no unique > keys in the table) -- This message was sent by Atlassian Jira (v8.3.4#803005)