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 DD94F200CEF for ; Mon, 4 Sep 2017 15:44:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DC77C164FDA; Mon, 4 Sep 2017 13:44:22 +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 EEBE6164FE7 for ; Mon, 4 Sep 2017 15:44:21 +0200 (CEST) Received: (qmail 42437 invoked by uid 500); 4 Sep 2017 13:44:16 -0000 Mailing-List: contact commits-help@kylin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kylin.apache.org Delivered-To: mailing list commits@kylin.apache.org Received: (qmail 40146 invoked by uid 99); 4 Sep 2017 13:44:15 -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, 04 Sep 2017 13:44:15 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 868B9F5687; Mon, 4 Sep 2017 13:44:12 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kangkaisen@apache.org To: commits@kylin.apache.org Date: Mon, 04 Sep 2017 13:44:47 -0000 Message-Id: In-Reply-To: <29bb2a5a9d4b444d847ad6061d9bedf9@git.apache.org> References: <29bb2a5a9d4b444d847ad6061d9bedf9@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [36/50] [abbrv] kylin git commit: KYLIN-2824 Parse Boolean type in JDBC driver archived-at: Mon, 04 Sep 2017 13:44:23 -0000 KYLIN-2824 Parse Boolean type in JDBC driver Signed-off-by: Billy Liu Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/7a47e947 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/7a47e947 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/7a47e947 Branch: refs/heads/2622-2764 Commit: 7a47e9479f7a8c53d284d3bd95cf11b145cf9c36 Parents: 363f858 Author: Tianhao Zhao Authored: Thu Aug 31 16:10:28 2017 +0800 Committer: Billy Liu Committed: Fri Sep 1 17:37:31 2017 +0800 ---------------------------------------------------------------------- jdbc/src/main/java/org/apache/kylin/jdbc/KylinClient.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/7a47e947/jdbc/src/main/java/org/apache/kylin/jdbc/KylinClient.java ---------------------------------------------------------------------- diff --git a/jdbc/src/main/java/org/apache/kylin/jdbc/KylinClient.java b/jdbc/src/main/java/org/apache/kylin/jdbc/KylinClient.java index d42dbb1..cd7b921 100644 --- a/jdbc/src/main/java/org/apache/kylin/jdbc/KylinClient.java +++ b/jdbc/src/main/java/org/apache/kylin/jdbc/KylinClient.java @@ -112,6 +112,7 @@ public class KylinClient implements IRemoteClient { result = BigDecimal.class; break; case Types.BIT: + case Types.BOOLEAN: result = Boolean.class; break; case Types.TINYINT: @@ -167,6 +168,7 @@ public class KylinClient implements IRemoteClient { case Types.DECIMAL: return new BigDecimal(value); case Types.BIT: + case Types.BOOLEAN: return Boolean.parseBoolean(value); case Types.TINYINT: return Byte.valueOf(value);