drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdiravka <...@git.apache.org>
Subject [GitHub] drill pull request #549: DRILL-4682: Allow full schema identifier in SELECT ...
Date Mon, 25 Jul 2016 20:52:33 GMT
Github user vdiravka commented on a diff in the pull request:

    --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/parser/CompoundIdentifierConverter.java
    @@ -115,6 +119,18 @@ public SqlNode visitChild(
               enableComplex = true;
    +      if (expr.getKind() == SqlKind.SELECT) {
    +        if (((SqlSelect) expr).getFrom() instanceof DrillCompoundIdentifier) {
    +          fullSchemasSet.add((DrillCompoundIdentifier) ((SqlSelect) expr).getFrom());
    +        } else if (((SqlSelect) expr).getFrom() instanceof SqlJoin) {
    --- End diff --
    You are right. I should add recursive checking of full-schema identifier of every nested
    Anyway it doesn't help now because when I ran the query with nested subqueries with different
schema-qualified tables I got an error from calcite. I've already written about it in calcite
dev list. 

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 infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message