Github user hsuanyi commented on a diff in the pull request: https://github.com/apache/drill/pull/397#discussion_r56454445 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/SqlConverter.java --- @@ -183,10 +190,40 @@ public SchemaPlus getDefaultSchema() { } private class DrillValidator extends SqlValidatorImpl { + private final Set<SqlValidatorScope> identitySet = Sets.newIdentityHashSet(); + protected DrillValidator(SqlOperatorTable opTab, SqlValidatorCatalogReader catalogReader, RelDataTypeFactory typeFactory, SqlConformance conformance) { super(opTab, catalogReader, typeFactory, conformance); } + + @Override + public SqlValidatorScope getSelectScope(final SqlSelect select) { --- End diff -- will move this logic to calcite.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---