[
https://issues.apache.org/jira/browse/CALCITE-2649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16669838#comment-16669838
]
Stamatis Zampetakis commented on CALCITE-2649:
----------------------------------------------
There are two easy solutions:
# Provide a new method in RelBuilder giving access to the size of the stack
(i.e., RelBuilder#inputCount()).
# Change the behavior+API of RelBuilder#field(alias,fieldName) to search for
an aliased field anywhere in the stack and not only on the top.
> Allow RelBuilder to create field references to aliased relations without
> knowing the size of the stack
> ------------------------------------------------------------------------------------------------------
>
> Key: CALCITE-2649
> URL: https://issues.apache.org/jira/browse/CALCITE-2649
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.17.0
> Reporter: Stamatis Zampetakis
> Assignee: Julian Hyde
> Priority: Minor
> Labels: beginner, newbie
> Fix For: 1.18.0
>
>
> As of [CALCITE-1523|https://issues.apache.org/jira/browse/CALCITE-1523] it is
> possible to create field references to aliased relations anywhere in the
> stack. However the respective field method requires to pass as a parameter
> the inputCount (i.e., size of the stack). This is not very convenient since
> clients of RelBuilder are obliged to track the size of the stack (leading to
> the uneseccary creation of Wrapper classes).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)