[ 
https://issues.apache.org/jira/browse/CALCITE-2561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17152474#comment-17152474
 ] 

Jiatao Tao commented on CALCITE-2561:
-------------------------------------

 Already fixed.

59b76701d9c805f51b0929577ca604fdbfe00b0b

> Suspicious code in org.apache.calcite.materialize.Lattice constructor
> ---------------------------------------------------------------------
>
>                 Key: CALCITE-2561
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2561
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Vladimir Sitnikov
>            Priority: Minor
>
> https://github.com/apache/calcite/blob/d59b639d27da704f00eff616324a2c04aa06f84c/core/src/main/java/org/apache/calcite/materialize/Lattice.java#L111-L114
> The contents of {{nameList}} is updated, but it is never queried
> {code:java}    List<String> nameList = new ArrayList<>();
>     for (Column column : columns) {
>       nameList.add(column.alias);
>     }
>     uniqueColumnNames =
>         ImmutableList.copyOf(
>             SqlValidatorUtil.uniquify(
>                 Lists.transform(columns, input -> input.alias), true));
> {code}
> [~julianhyde], should {{nameList}} be just removed?
> It looks like {{Lists.transform(columns, input -> input.alias)}} and 
> {{nameList}} are the same thing.



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

Reply via email to