[
https://issues.apache.org/jira/browse/CALCITE-1058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Hyde resolved CALCITE-1058.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.6.0
Fixed in http://git-wip-us.apache.org/repos/asf/calcite/commit/ee283cad.
> Add method RelBuilder.empty, and rewrite LIMIT 0 to it
> ------------------------------------------------------
>
> Key: CALCITE-1058
> URL: https://issues.apache.org/jira/browse/CALCITE-1058
> Project: Calcite
> Issue Type: Bug
> Reporter: Julian Hyde
> Assignee: Julian Hyde
> Fix For: 1.6.0
>
>
> Add a method RelBuilder.empty(), a new method that returns an empty relation.
> The default implementation returns a Values with no rows, but schema-on-query
> systems such as Drill might override the empty method to read schema from an
> input at query time.
> RelBuilder.filter(false) and RelBuilder.limit(0, 0) should simplify to
> empty().
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)