You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by vdiravka <gi...@git.apache.org> on 2017/02/06 16:59:58 UTC

[GitHub] drill pull request #520: DRILL-3510: Add ANSI_QUOTES option so that Drill's ...

Github user vdiravka commented on a diff in the pull request:

    https://github.com/apache/drill/pull/520#discussion_r99624485
  
    --- Diff: exec/jdbc/src/main/java/org/apache/drill/jdbc/impl/DrillConnectionImpl.java ---
    @@ -760,6 +765,24 @@ public void abort(Executor executor) throws SQLException {
         }
       }
     
    +  @Override
    +  public boolean useAnsiQuotedIdentifiers() throws SQLException {
    +    boolean systemOption = false;
    +    Boolean sessionOption = null;
    +    String sql = String.format("select type, bool_val from sys.options where name = '%s'",
    +        PlannerSettings.ANSI_QUOTES_KEY);
    +    ResultSet rs = executeSql(sql);
    --- End diff --
    
    Done.
    New RPC request is implemented. RPC response returns `ServerProperties` that represent the list of server session options.


---
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.
---