public List<FieldNode> getSelectColsFromLVJoin(RowSchema rs,
      List<FieldNode> colList) throws SemanticException {
    List<FieldNode> columns = new ArrayList<>();
    for (FieldNode col : colList) {
      if (rs.getColumnInfo(col.getFieldName()) != null) {
        columns.add(col);
      }
    }
    return columns;
  }
Create the list of internal columns for select tag of LV
ql/src/java/org/apache/hadoop/hive/ql/optimizer/ColumnPrunerProcCtx.java