[ https://issues.apache.org/jira/browse/CALCITE-1058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Hyde updated CALCITE-1058: --------------------------------- Summary: Add method RelBuilder.empty, and rewrite LIMIT 0 to it (was: Add method RelBuilder.empty, and rewrite LIMIT 0 and WHERE FALSE to it) > 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)