Github user arina-ielchiieva commented on a diff in the pull request:

    https://github.com/apache/drill/pull/996#discussion_r146815141
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/SqlConverter.java
 ---
    @@ -481,6 +485,19 @@ public RelOptTableImpl getTable(final List<String> 
names) {
                 .message("Temporary tables usage is disallowed. Used temporary 
table name: %s.", names)
                 .build(logger);
           }
    +
    +      // Check the schema and throw a valid SchemaNotFound exception 
instead of TableNotFound exception.
    --- End diff --
    
    Could you please factor out this logic in a separate method?


---

Reply via email to