[
https://issues.apache.org/jira/browse/HIVE-12839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15128815#comment-15128815
]
Julian Hyde commented on HIVE-12839:
------------------------------------
[~pxiong], I was pretty sure I didn't add anything breaking after you validated
the 1.6 RC, but it looks as if I screwed up. Sorry about that. I think you can
add a HiveValuesFactory to the context used to create a RelBuilder, make it do
something different for 0 rows (e.g. create a Sort(limit 0) or a null scan) and
that will solve the problem without needing any changes to Calcite.
As an aside, if you could change Calcite, what would you want
{{RelBuilder.empty}} to do? I presume it is useful to convert {{LIMIT 0}} and
{{WHERE FALSE}} to an empty relation, so how would you propose to represent it
in Hive?
> Upgrade Hive to Calcite 1.6
> ---------------------------
>
> Key: HIVE-12839
> URL: https://issues.apache.org/jira/browse/HIVE-12839
> Project: Hive
> Issue Type: Improvement
> Reporter: Pengcheng Xiong
> Assignee: Pengcheng Xiong
> Attachments: HIVE-12839.01.patch, HIVE-12839.02.patch,
> HIVE-12839.03.patch
>
>
> CLEAR LIBRARY CACHE
> Upgrade Hive to Calcite 1.6.0-incubating.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)