Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CB106200C13 for ; Mon, 6 Feb 2017 18:00:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C96D7160B53; Mon, 6 Feb 2017 17:00:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 16E16160B56 for ; Mon, 6 Feb 2017 17:59:59 +0100 (CET) Received: (qmail 96314 invoked by uid 500); 6 Feb 2017 16:59:59 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 96299 invoked by uid 99); 6 Feb 2017 16:59:58 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2017 16:59:58 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 542EBDFF17; Mon, 6 Feb 2017 16:59:58 +0000 (UTC) From: vdiravka To: dev@drill.apache.org Reply-To: dev@drill.apache.org References: In-Reply-To: Subject: [GitHub] drill pull request #520: DRILL-3510: Add ANSI_QUOTES option so that Drill's ... Content-Type: text/plain Message-Id: <20170206165958.542EBDFF17@git1-us-west.apache.org> Date: Mon, 6 Feb 2017 16:59:58 +0000 (UTC) archived-at: Mon, 06 Feb 2017 17:00:01 -0000 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. ---