[
https://issues.apache.org/jira/browse/HIVE-17871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16213955#comment-16213955
]
Jesus Camacho Rodriguez commented on HIVE-17871:
------------------------------------------------
[~bslim], fwiw the rule that should be triggering the transformation of
{{count(x)}} into {{count()}} in Hive is {{HiveAggregateReduceRule}}. It might
be that nullability of a column is not propagated when we create the Calcite
operator tree from Hive and that is why the rule is not being triggered in this
case.
> Add non nullability flag to druid time column
> ---------------------------------------------
>
> Key: HIVE-17871
> URL: https://issues.apache.org/jira/browse/HIVE-17871
> Project: Hive
> Issue Type: Improvement
> Components: Druid integration
> Reporter: slim bouguerra
> Assignee: Jesus Camacho Rodriguez
> Attachments: HIVE-17871.patch
>
>
> Druid time column is non null all the time.
> Adding the non nullability flag will enable extra calcite goodness like
> transforming
> {code} select count(`__time`) from table {code} to {code} select count(*)
> from table {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)