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 9ED82200C67 for ; Mon, 15 May 2017 13:37:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9D593160BCE; Mon, 15 May 2017 11:37:07 +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 E0940160BC1 for ; Mon, 15 May 2017 13:37:06 +0200 (CEST) Received: (qmail 43003 invoked by uid 500); 15 May 2017 11:37:06 -0000 Mailing-List: contact issues-help@carbondata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.apache.org Delivered-To: mailing list issues@carbondata.apache.org Received: (qmail 42994 invoked by uid 99); 15 May 2017 11:37:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 May 2017 11:37:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9DA64CF4F2 for ; Mon, 15 May 2017 11:37:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Ws8nzsjP8hmJ for ; Mon, 15 May 2017 11:37: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 CED835F36B for ; Mon, 15 May 2017 11:37:04 +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 602C8E0905 for ; Mon, 15 May 2017 11:37:04 +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 168EC21E09 for ; Mon, 15 May 2017 11:37:04 +0000 (UTC) Date: Mon, 15 May 2017 11:37:04 +0000 (UTC) From: "Vinod Rohilla (JIRA)" To: issues@carbondata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CARBONDATA-717) AND operator does not work properly in carbondata MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 15 May 2017 11:37:07 -0000 [ https://issues.apache.org/jira/browse/CARBONDATA-717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vinod Rohilla closed CARBONDATA-717. ------------------------------------ Resolution: Fixed Fixed > AND operator does not work properly in carbondata > ------------------------------------------------- > > Key: CARBONDATA-717 > URL: https://issues.apache.org/jira/browse/CARBONDATA-717 > Project: CarbonData > Issue Type: Bug > Components: sql > Affects Versions: 1.0.0-incubating > Environment: Spark 2.1 > Reporter: Vinod Rohilla > Priority: Minor > Attachments: sample.csv > > > Incorrect result displays to a user while use AND operator. > Note:Issue exist when you take ID as a String but if you take ID as a int then it's working fine. > Steps to Reproduce: > 1: create a table: > CREATE TABLE IF NOT EXISTS t4 (ID string, name string) STORED BY 'carbondata'; > 2:Load the data > LOAD DATA LOCAL INPATH '/home/Desktop/sample.csv' into table t4; > 3:Total record in the table. > 0: jdbc:hive2://localhost:10000> select * from t4; > +-----+--------+--+ > | ID | name | > +-----+--------+--+ > | 1 | david | > | 2 | eason | > | 3 | jarry | > +-----+--------+--+ > 4: SELECT * FROM t3 where id>=1 and id <3; > 0: jdbc:hive2://localhost:10000> SELECT * FROM t4 where id>=1 and id <3; > +-----+--------+--+ > | ID | name | > +-----+--------+--+ > | 2 | eason | > | 3 | jarry | > +-----+--------+--+ > Expected Result: It should show the below result: > 0: jdbc:hive2://localhost:10000> SELECT * FROM t4 where id>=1 and id <3; > +-----+--------+--+ > | ID | name | > +-----+--------+--+ > | 1 | david | > | 2 | eason | > +-----+--------+--+ -- This message was sent by Atlassian JIRA (v6.3.15#6346)