Ruben Quesada Lopez created CALCITE-3172:
--------------------------------------------
Summary: RelBuilder#empty does not keep aliases
Key: CALCITE-3172
URL: https://issues.apache.org/jira/browse/CALCITE-3172
Project: Calcite
Issue Type: Bug
Components: core
Reporter: Ruben Quesada Lopez
Assignee: Ruben Quesada Lopez
Fix For: 1.21.0
{{RelBuilder#empty}} method _"Creates a relational expression that reads from
an input and throws all of the rows away... The default implementation creates
a Values with the same specified row type as the input"_. However, even though
the "original" rowType is kept, its aliases are lost, which can lead to issues
when building a plan (especially because this method is used internally by
other ones, e.g. by RelBuilder#filter with an "always false" filter).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)