julianhyde commented on a change in pull request #1811: [CALCITE-3789] Support validation of UNNEST multiple array columns like Presto URL: https://github.com/apache/calcite/pull/1811#discussion_r404215706
########## File path: core/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java ########## @@ -2219,6 +2207,42 @@ protected void convertFrom( } } + private List<String> getFieldAliases(SqlCall asCall) { + if (!validator.getConformance().allowAliasUnnestColumns()) { + return null; + } + + List<String> columnAliases = new ArrayList<>(); + for (SqlNode sqlNode : Util.skip(asCall.getOperandList(), 2)) { + columnAliases.add(((SqlIdentifier) sqlNode).getSimple()); + } + return columnAliases; + } + + private void convertUnnest(Blackboard bb, SqlCall from, List<String> fieldAliases) { + SqlCall call; + call = from; Review comment: assign on one line and make final? or eliminate a variable? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services