Julian Hyde created CALCITE-1058:
------------------------------------
Summary: Add method RelBuilder.empty, and rewrite LIMIT 0 and
WHERE FALSE 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
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)