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 12:15:00 UTC

[jira] [Updated] (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 updated CALCITE-4043:
-------------------------------
    Description: 
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.


> 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
>             Fix For: 1.24.0
>
>
> 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)