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 38F91200CB8 for ; Sat, 1 Jul 2017 08:58:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2D64B160BF8; Sat, 1 Jul 2017 06:58:10 +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 71970160BD2 for ; Sat, 1 Jul 2017 08:58:09 +0200 (CEST) Received: (qmail 91206 invoked by uid 500); 1 Jul 2017 06:58:07 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 91197 invoked by uid 99); 1 Jul 2017 06:58:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Jul 2017 06:58:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7FE601AFA63 for ; Sat, 1 Jul 2017 06:58:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id GSDRZ5ZnmPKw for ; Sat, 1 Jul 2017 06:58:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 43E535F576 for ; Sat, 1 Jul 2017 06:58:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2FA5AE0BC8 for ; Sat, 1 Jul 2017 06:58:03 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id C4D1E245DC for ; Sat, 1 Jul 2017 06:58:00 +0000 (UTC) Date: Sat, 1 Jul 2017 06:58:00 +0000 (UTC) From: "Bing Li (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-16766) Hive query with space as filter does not give proper result MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 01 Jul 2017 06:58:10 -0000 [ https://issues.apache.org/jira/browse/HIVE-16766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16071054#comment-16071054 ] Bing Li commented on HIVE-16766: -------------------------------- Hi, Subash Which Hive version did you use? Could you post the reproduce queries as well? I tried it on a Hive package built from branch-2.3, and it worked for me. My Testing ============== *hive> describe test;* OK col1 string col2 string Time taken: 0.057 seconds, Fetched: 2 row(s) *hive> select * from test;* OK a1 a2 b1 b2 c1 c2 D Time taken: 0.22 seconds, Fetched: 4 row(s) *hive> select count(1) as cnt from test where col1="" and col2="D";* Query ID = root_20170630235239_b58b7dbc-14ef-4126-b56b-fdcf187acc09 Total jobs = 1 Launching Job 1 out of 1 In order to change the average load for a reducer (in bytes): set hive.exec.reducers.bytes.per.reducer= In order to limit the maximum number of reducers: set hive.exec.reducers.max= In order to set a constant number of reducers: set mapreduce.job.reduces= Starting Spark Job = f25577ce-2ed6-4c5c-a64a-6ff7419ab778 -------------------------------------------------------------------------------------- STAGES ATTEMPT STATUS TOTAL COMPLETED RUNNING PENDING FAILED -------------------------------------------------------------------------------------- Stage-5 ........ 0 FINISHED 1 1 0 0 0 Stage-6 ........ 0 FINISHED 1 1 0 0 0 -------------------------------------------------------------------------------------- STAGES: 02/02 [==========================>>] 100% ELAPSED TIME: 1.01 s -------------------------------------------------------------------------------------- Status: Finished successfully in 1.01 seconds OK 1 Time taken: 1.436 seconds, Fetched: 1 row(s) > Hive query with space as filter does not give proper result > ----------------------------------------------------------- > > Key: HIVE-16766 > URL: https://issues.apache.org/jira/browse/HIVE-16766 > Project: Hive > Issue Type: Bug > Reporter: Subash > Assignee: Bing Li > Priority: Critical > > Hi Team, > I have used the query as below format and it does not give proper results. Since there is a split by \s+ in ExecuteStatementOperation class in line 48, I feel something goes wrong there. Could help me with this, if i am wrong ? > I am using Hive JDBC version 1.1.0 > The sample query is as follows, > select count(1) as cnt from table where col1=" " and col2="D"; -- This message was sent by Atlassian JIRA (v6.4.14#64029)