[ 
https://issues.apache.org/jira/browse/CALCITE-4043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruben Q L updated CALCITE-4043:
-------------------------------
    Labels: pull-request-available  (was: )

> Improve IllegalArgumentException message in RelBuilder#field
> ------------------------------------------------------------
>
>                 Key: CALCITE-4043
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4043
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.23.0
>            Reporter: Ruben Q L
>            Assignee: Ruben Q L
>            Priority: Trivial
>              Labels: pull-request-available
>             Fix For: 1.24.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The {{RelBuilder#field}} method that creates a {{RexNode}} based on alias + 
> fieldName throws an {{IllegalArgumentException}} if the corresponding field 
> is not found:
> {code}
>   public RexNode field(int inputCount, String alias, String fieldName) {
>     ...
>     throw new IllegalArgumentException("no aliased field found; fields are: " 
> + fields);
>   }
> {code}
> However, the exception message does not include the requested {{alias}} & 
> {{fieldName}}, which is relevant information, definitively useful for 
> troubleshooting.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to