You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Ruben Q L (Jira)" <ji...@apache.org> on 2020/06/04 15:02:00 UTC

[jira] [Resolved] (CALCITE-4043) Improve IllegalArgumentException message in RelBuilder#field

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

Ruben Q L resolved CALCITE-4043.
--------------------------------
    Resolution: Fixed

Done in https://github.com/apache/calcite/commit/014884730cba6f6708f2fadc7c3b9a09d9e0cacb

> 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: 50m
>  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)