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 B666C200C1C for ; Wed, 15 Feb 2017 12:08:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B4FB4160B5E; Wed, 15 Feb 2017 11:08:59 +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 62E53160B46 for ; Wed, 15 Feb 2017 12:08:58 +0100 (CET) Received: (qmail 72508 invoked by uid 500); 15 Feb 2017 11:08:57 -0000 Mailing-List: contact issues-help@carbondata.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.incubator.apache.org Delivered-To: mailing list issues@carbondata.incubator.apache.org Received: (qmail 72499 invoked by uid 99); 15 Feb 2017 11:08:57 -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; Wed, 15 Feb 2017 11:08:57 +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 2B1D6C06AA for ; Wed, 15 Feb 2017 11:08:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id k3QWGvKouqc8 for ; Wed, 15 Feb 2017 11:08:55 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 5C9E35F19B for ; Wed, 15 Feb 2017 11:08:54 +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 EC9F8E0272 for ; Wed, 15 Feb 2017 11:08:41 +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 9F5B924119 for ; Wed, 15 Feb 2017 11:08:41 +0000 (UTC) Date: Wed, 15 Feb 2017 11:08:41 +0000 (UTC) From: "SWATI RAO (JIRA)" To: issues@carbondata.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CARBONDATA-706) Mulitiple OR operators does not work properly in carbondata MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 15 Feb 2017 11:08:59 -0000 [ https://issues.apache.org/jira/browse/CARBONDATA-706?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] SWATI RAO updated CARBONDATA-706: --------------------------------- Description:=20 Incorrect result displays with multiple OR operators.=20 Steps to Reproduces: 1:Create table using following Command " create table Carbon_automation (imei string,deviceInformationId int,MAC = string,deviceColor string,device_backColor string,modelId string,marketName= string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,seri= es string,productionDate timestamp,bomCode string,internalModels string, de= liveryTime string, channelsId string, channelsName string , deliveryAreaId = string, deliveryCountry string, deliveryProvince string, deliveryCity strin= g,deliveryDistrict string, deliveryStreet string, oxSingleNumber string, Ac= tiveCheckTime string, ActiveAreaId string, ActiveCountry string, ActiveProv= ince string, Activecity string, ActiveDistrict string, ActiveStreet string,= ActiveOperatorId string, Active_releaseId string, Active_EMUIVersion strin= g, Active_operaSysVersion string, Active_BacVerNumber string, Active_BacFla= shVer string, Active_webUIVersion string, Active_webUITypeCarrVer string,Ac= tive_webTypeDataVerNumber string, Active_operatorsVersion string, Active_ph= onePADPartitionedVersions string, Latest_YEAR int, Latest_MONTH int, Latest= _DAY int, Latest_HOUR string, Latest_areaId string, Latest_country string, = Latest_province string, Latest_city string, Latest_district string, Latest_= street string, Latest_releaseId string, Latest_EMUIVersion string, Latest_o= peraSysVersion string, Latest_BacVerNumber string, Latest_BacFlashVer strin= g, Latest_webUIVersion string, Latest_webUITypeCarrVer string, Latest_webTy= peDataVerNumber string, Latest_operatorsVersion string, Latest_phonePADPart= itionedVersions string, Latest_operatorId string, gamePointDescription stri= ng,gamePointId double,contractNumber double,imei_count int) STORED BY 'org.= apache.carbondata.format' TBLPROPERTIES ('DICTIONARY_INCLUDE'=3D'deviceInfo= rmationId,Latest_YEAR,Latest_MONTH,Latest_DAY')" 2:Load Data with following command " LOAD DATA INPATH 'HDFS_URL/BabuStore/Data/HiveData' INTO TABLE Carbon_au= tomation OPTIONS('DELIMITER'=3D',','QUOTECHAR'=3D'"','BAD_RECORDS_ACTION'= =3D'FORCE','FILEHEADER'=3D'imei,deviceInformationId,MAC,deviceColor,device_= backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,prod= uctionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deli= veryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,d= eliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,Ac= tiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOpe= ratorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_B= acVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,= Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitio= nedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,L= atest_country,Latest_province,Latest_city,Latest_district,Latest_street,Lat= est_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber= ,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webT= ypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions= ,Latest_operatorId,gamePointId,gamePointDescription,imei_count')" 3:Now run the Select Query: " select imei,gamePointId, channelsId,series from Carbon_automation where = channelsId >=3D10 OR channelsId <=3D1 or series=3D'7Series' " 4:Result Displays=20 " 0: jdbc:hive2://localhost:10000> select imei,gamePointId, channelsId,seri= es from Carbon_automation where channelsId >=3D10 OR channelsId <=3D1 or s= eries=3D'7Series'; +-------------+--------------+-------------+----------+--+ | imei | gamePointId | channelsId | series | +-------------+--------------+-------------+----------+--+ | 1AA1 | 2738.562 | 4 | 7Series | | 1AA10 | 1714.635 | 4 | 7Series | | 1AA100 | 1271.0 | 6 | 5Series | | 1AA1000 | 692.0 | 3 | 5Series | | 1AA10000 | 2175.0 | 1 | 7Series | | 1AA100000 | 136.0 | 6 | 9Series | | 1AA1000000 | 1600.0 | 6 | 7Series | | 1AA100001 | 505.0 | 7 | 0Series | | 1AA100002 | 1341.0 | 3 | 0Series | | 1AA100003 | 2239.0 | 3 | 5Series | | 1AA100004 | 2970.0 | 2 | 4Series | | 1AA100005 | 2593.0 | 1 | 1Series | | 1AA100006 | 2572.0 | 2 | 6Series | | 1AA100007 | 1991.0 | 3 | 9Series | | 1AA100008 | 1442.0 | 1 | 8Series | | 1AA100009 | 1841.0 | 3 | 0Series | | 1AA10001 | 298.0 | 5 | 2Series | | 1AA100010 | 79.0 | 6 | 3Series | | 1AA100011 | 202.0 | 1 | 0Series | | 1AA100012 | 568.0 | 2 | 4Series | | 1AA100013 | 355.0 | 6 | 1Series | | 1AA100014 | 151.0 | 3 | 5Series | | 1AA100015 | 2863.0 | 1 | 4Series | | 1AA100016 | 1873.0 | 3 | 3Series | | 1AA100017 | 2205.0 | 3 | 9Series | | 1AA100018 | 441.0 | 4 | 8Series | | 1AA100019 | 2194.0 | 3 | 5Series | | 1AA10002 | 2972.0 | 5 | 0Series | | 1AA100020 | 256.0 | 7 | 5Series | | 1AA100021 | 1778.0 | 6 | 0Series | | 1AA100022 | 1999.0 | 5 | 5Series | | 1AA100023 | 2194.0 | 3 | 5Series | | 1AA100024 | 2483.0 | 2 | 6Series | | 1AA100025 | 1724.0 | 1 | 0Series | | 1AA100026 | 1768.0 | 7 | 7Series | | 1AA100027 | 2436.0 | 4 | 0Series | | 1AA100028 | 2849.0 | 5 | 5Series | | 1AA100029 | 1691.0 | 5 | 2Series | | 1AA10003 | 2071.0 | 4 | 7Series | | 1AA100030 | 1333.0 | 3 | 7Series | | 1AA100031 | 1080.0 | 1 | 7Series | | 1AA100032 | 1053.0 | 7 | 1Series | | 1AA100033 | 760.0 | 6 | 8Series | | 1AA100034 | 2061.0 | 6 | 2Series | | 1AA100035 | 2142.0 | 7 | 5Series | | 1AA100036 | 2224.0 | 5 | 5Series | | 1AA100037 | 1015.0 | 6 | 7Series | | 1AA100038 | 1229.0 | 3 | 6Series | | 1AA100039 | 1750.0 | 1 | 8Series | | 1AA10004 | 1717.0 | 4 | 5Series | | 1AA100040 | 2078.0 | 7 | 8Series | | 1AA100041 | 2734.0 | 1 | 5Series | | 1AA100042 | 2745.0 | 5 | 3Series | | 1AA100043 | 571.0 | 6 | 9Series | | 1AA100044 | 1697.0 | 2 | 8Series | | 1AA100045 | 2553.0 | 6 | 2Series | | 1AA100046 | 1077.0 | 4 | 3Series | | 1AA100047 | 1823.0 | 1 | 9Series | | 1AA100048 | 2399.0 | 1 | 3Series | | 1AA100049 | 2890.0 | 6 | 0Series | | 1AA10005 | 1608.0 | 2 | 8Series | | 1AA100050 | 29.0 | 1 | 2Series | | 1AA100051 | 1407.0 | 7 | 2Series | | 1AA100052 | 845.0 | 7 | 6Series | | 1AA100053 | 1655.0 | 3 | 2Series | | 1AA100054 | 1368.0 | 2 | 7Series | | 1AA100055 | 1728.0 | 7 | 7Series | | 1AA100056 | 750.0 | 5 | 6Series | | 1AA100057 | 2288.0 | 6 | 9Series | | 1AA100058 | 2635.0 | 4 | 5Series | | 1AA100059 | 1337.0 | 7 | 4Series | | 1AA10006 | 2478.0 | 5 | 3Series | | 1AA100060 | 538.0 | 4 | 8Series | | 1AA100061 | 1407.0 | 6 | 6Series | | 1AA100062 | 2952.0 | 6 | 9Series | | 1AA100063 | 1226.0 | 3 | 2Series | | 1AA100064 | 865.0 | 7 | 6Series | | 1AA100065 | 901.0 | 7 | 0Series | | 1AA100066 | 1864.0 | 4 | 6Series | | 1AA100067 | 572.0 | 7 | 4Series | | 1AA100068 | 412.0 | 7 | 8Series | | 1AA100069 | 1491.0 | 5 | 8Series | | 1AA10007 | 1350.0 | 3 | 8Series | | 1AA100070 | 1567.0 | 3 | 0Series | | 1AA100071 | 1973.0 | 5 | 0Series | | 1AA100072 | 448.0 | 7 | 4Series | | 1AA100073 | 2488.0 | 2 | 4Series | | 1AA100074 | 907.0 | 7 | 6Series | | 1AA100075 | 2507.0 | 6 | 3Series | | 1AA100076 | 732.0 | 7 | 0Series | | 1AA100077 | 2077.0 | 6 | 3Series | | 1AA100078 | 1434.0 | 5 | 2Series | | 1AA100079 | 1098.0 | 6 | 4Series | | 1AA10008 | 813.0 | 4 | 5Series | | 1AA100080 | 954.0 | 6 | 9Series | | 1AA100081 | 613.0 | 2 | 5Series | | 1AA100082 | 2348.0 | 7 | 5Series | | 1AA100083 | 2192.0 | 2 | 0Series | | 1AA100084 | 2826.0 | 4 | 0Series | +-------------+--------------+-------------+----------+--+ 99 rows selected (0.221 seconds) " 5:Csv attached "100_hive_test.csv" was: Multiple OR operators result does not match with hive. Steps to Reproduces: 1:Create table using following Command " create table Carbon_automation (imei string,deviceInformationId int,MAC = string,deviceColor string,device_backColor string,modelId string,marketName= string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,seri= es string,productionDate timestamp,bomCode string,internalModels string, de= liveryTime string, channelsId string, channelsName string , deliveryAreaId = string, deliveryCountry string, deliveryProvince string, deliveryCity strin= g,deliveryDistrict string, deliveryStreet string, oxSingleNumber string, Ac= tiveCheckTime string, ActiveAreaId string, ActiveCountry string, ActiveProv= ince string, Activecity string, ActiveDistrict string, ActiveStreet string,= ActiveOperatorId string, Active_releaseId string, Active_EMUIVersion strin= g, Active_operaSysVersion string, Active_BacVerNumber string, Active_BacFla= shVer string, Active_webUIVersion string, Active_webUITypeCarrVer string,Ac= tive_webTypeDataVerNumber string, Active_operatorsVersion string, Active_ph= onePADPartitionedVersions string, Latest_YEAR int, Latest_MONTH int, Latest= _DAY int, Latest_HOUR string, Latest_areaId string, Latest_country string, = Latest_province string, Latest_city string, Latest_district string, Latest_= street string, Latest_releaseId string, Latest_EMUIVersion string, Latest_o= peraSysVersion string, Latest_BacVerNumber string, Latest_BacFlashVer strin= g, Latest_webUIVersion string, Latest_webUITypeCarrVer string, Latest_webTy= peDataVerNumber string, Latest_operatorsVersion string, Latest_phonePADPart= itionedVersions string, Latest_operatorId string, gamePointDescription stri= ng,gamePointId double,contractNumber double,imei_count int) STORED BY 'org.= apache.carbondata.format' TBLPROPERTIES ('DICTIONARY_INCLUDE'=3D'deviceInfo= rmationId,Latest_YEAR,Latest_MONTH,Latest_DAY')" 2:Load Data with following command " LOAD DATA INPATH 'HDFS_URL/BabuStore/Data/HiveData' INTO TABLE Carbon_au= tomation OPTIONS('DELIMITER'=3D',','QUOTECHAR'=3D'"','BAD_RECORDS_ACTION'= =3D'FORCE','FILEHEADER'=3D'imei,deviceInformationId,MAC,deviceColor,device_= backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,prod= uctionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deli= veryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,d= eliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,Ac= tiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOpe= ratorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_B= acVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,= Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitio= nedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,L= atest_country,Latest_province,Latest_city,Latest_district,Latest_street,Lat= est_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber= ,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webT= ypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions= ,Latest_operatorId,gamePointId,gamePointDescription,imei_count')" 3:Now run the Select Query: " select imei,gamePointId, channelsId,series from Carbon_automation where = channelsId >=3D10 OR channelsId <=3D1 or series=3D'7Series' " 4:Result Displays=20 " 0: jdbc:hive2://localhost:10000> select imei,gamePointId, channelsId,seri= es from Carbon_automation where channelsId >=3D10 OR channelsId <=3D1 or s= eries=3D'7Series'; +-------------+--------------+-------------+----------+--+ | imei | gamePointId | channelsId | series | +-------------+--------------+-------------+----------+--+ | 1AA1 | 2738.562 | 4 | 7Series | | 1AA10 | 1714.635 | 4 | 7Series | | 1AA100 | 1271.0 | 6 | 5Series | | 1AA1000 | 692.0 | 3 | 5Series | | 1AA10000 | 2175.0 | 1 | 7Series | | 1AA100000 | 136.0 | 6 | 9Series | | 1AA1000000 | 1600.0 | 6 | 7Series | | 1AA100001 | 505.0 | 7 | 0Series | | 1AA100002 | 1341.0 | 3 | 0Series | | 1AA100003 | 2239.0 | 3 | 5Series | | 1AA100004 | 2970.0 | 2 | 4Series | | 1AA100005 | 2593.0 | 1 | 1Series | | 1AA100006 | 2572.0 | 2 | 6Series | | 1AA100007 | 1991.0 | 3 | 9Series | | 1AA100008 | 1442.0 | 1 | 8Series | | 1AA100009 | 1841.0 | 3 | 0Series | | 1AA10001 | 298.0 | 5 | 2Series | | 1AA100010 | 79.0 | 6 | 3Series | | 1AA100011 | 202.0 | 1 | 0Series | | 1AA100012 | 568.0 | 2 | 4Series | | 1AA100013 | 355.0 | 6 | 1Series | | 1AA100014 | 151.0 | 3 | 5Series | | 1AA100015 | 2863.0 | 1 | 4Series | | 1AA100016 | 1873.0 | 3 | 3Series | | 1AA100017 | 2205.0 | 3 | 9Series | | 1AA100018 | 441.0 | 4 | 8Series | | 1AA100019 | 2194.0 | 3 | 5Series | | 1AA10002 | 2972.0 | 5 | 0Series | | 1AA100020 | 256.0 | 7 | 5Series | | 1AA100021 | 1778.0 | 6 | 0Series | | 1AA100022 | 1999.0 | 5 | 5Series | | 1AA100023 | 2194.0 | 3 | 5Series | | 1AA100024 | 2483.0 | 2 | 6Series | | 1AA100025 | 1724.0 | 1 | 0Series | | 1AA100026 | 1768.0 | 7 | 7Series | | 1AA100027 | 2436.0 | 4 | 0Series | | 1AA100028 | 2849.0 | 5 | 5Series | | 1AA100029 | 1691.0 | 5 | 2Series | | 1AA10003 | 2071.0 | 4 | 7Series | | 1AA100030 | 1333.0 | 3 | 7Series | | 1AA100031 | 1080.0 | 1 | 7Series | | 1AA100032 | 1053.0 | 7 | 1Series | | 1AA100033 | 760.0 | 6 | 8Series | | 1AA100034 | 2061.0 | 6 | 2Series | | 1AA100035 | 2142.0 | 7 | 5Series | | 1AA100036 | 2224.0 | 5 | 5Series | | 1AA100037 | 1015.0 | 6 | 7Series | | 1AA100038 | 1229.0 | 3 | 6Series | | 1AA100039 | 1750.0 | 1 | 8Series | | 1AA10004 | 1717.0 | 4 | 5Series | | 1AA100040 | 2078.0 | 7 | 8Series | | 1AA100041 | 2734.0 | 1 | 5Series | | 1AA100042 | 2745.0 | 5 | 3Series | | 1AA100043 | 571.0 | 6 | 9Series | | 1AA100044 | 1697.0 | 2 | 8Series | | 1AA100045 | 2553.0 | 6 | 2Series | | 1AA100046 | 1077.0 | 4 | 3Series | | 1AA100047 | 1823.0 | 1 | 9Series | | 1AA100048 | 2399.0 | 1 | 3Series | | 1AA100049 | 2890.0 | 6 | 0Series | | 1AA10005 | 1608.0 | 2 | 8Series | | 1AA100050 | 29.0 | 1 | 2Series | | 1AA100051 | 1407.0 | 7 | 2Series | | 1AA100052 | 845.0 | 7 | 6Series | | 1AA100053 | 1655.0 | 3 | 2Series | | 1AA100054 | 1368.0 | 2 | 7Series | | 1AA100055 | 1728.0 | 7 | 7Series | | 1AA100056 | 750.0 | 5 | 6Series | | 1AA100057 | 2288.0 | 6 | 9Series | | 1AA100058 | 2635.0 | 4 | 5Series | | 1AA100059 | 1337.0 | 7 | 4Series | | 1AA10006 | 2478.0 | 5 | 3Series | | 1AA100060 | 538.0 | 4 | 8Series | | 1AA100061 | 1407.0 | 6 | 6Series | | 1AA100062 | 2952.0 | 6 | 9Series | | 1AA100063 | 1226.0 | 3 | 2Series | | 1AA100064 | 865.0 | 7 | 6Series | | 1AA100065 | 901.0 | 7 | 0Series | | 1AA100066 | 1864.0 | 4 | 6Series | | 1AA100067 | 572.0 | 7 | 4Series | | 1AA100068 | 412.0 | 7 | 8Series | | 1AA100069 | 1491.0 | 5 | 8Series | | 1AA10007 | 1350.0 | 3 | 8Series | | 1AA100070 | 1567.0 | 3 | 0Series | | 1AA100071 | 1973.0 | 5 | 0Series | | 1AA100072 | 448.0 | 7 | 4Series | | 1AA100073 | 2488.0 | 2 | 4Series | | 1AA100074 | 907.0 | 7 | 6Series | | 1AA100075 | 2507.0 | 6 | 3Series | | 1AA100076 | 732.0 | 7 | 0Series | | 1AA100077 | 2077.0 | 6 | 3Series | | 1AA100078 | 1434.0 | 5 | 2Series | | 1AA100079 | 1098.0 | 6 | 4Series | | 1AA10008 | 813.0 | 4 | 5Series | | 1AA100080 | 954.0 | 6 | 9Series | | 1AA100081 | 613.0 | 2 | 5Series | | 1AA100082 | 2348.0 | 7 | 5Series | | 1AA100083 | 2192.0 | 2 | 0Series | | 1AA100084 | 2826.0 | 4 | 0Series | +-------------+--------------+-------------+----------+--+ 99 rows selected (0.221 seconds) " 5:Csv attached "100_hive_test.csv" > Mulitiple OR operators does not work properly in carbondata > ----------------------------------------------------------- > > Key: CARBONDATA-706 > URL: https://issues.apache.org/jira/browse/CARBONDATA-706 > Project: CarbonData > Issue Type: Bug > Components: sql > Affects Versions: 1.1.0-incubating > Environment: Spark 2.1 > Reporter: SWATI RAO > Priority: Minor > Attachments: 100_hive_test.csv > > > Incorrect result displays with multiple OR operators.=20 > Steps to Reproduces: > 1:Create table using following Command > " create table Carbon_automation (imei string,deviceInformationId int,MA= C string,deviceColor string,device_backColor string,modelId string,marketNa= me string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,se= ries string,productionDate timestamp,bomCode string,internalModels string, = deliveryTime string, channelsId string, channelsName string , deliveryAreaI= d string, deliveryCountry string, deliveryProvince string, deliveryCity str= ing,deliveryDistrict string, deliveryStreet string, oxSingleNumber string, = ActiveCheckTime string, ActiveAreaId string, ActiveCountry string, ActivePr= ovince string, Activecity string, ActiveDistrict string, ActiveStreet strin= g, ActiveOperatorId string, Active_releaseId string, Active_EMUIVersion str= ing, Active_operaSysVersion string, Active_BacVerNumber string, Active_BacF= lashVer string, Active_webUIVersion string, Active_webUITypeCarrVer string,= Active_webTypeDataVerNumber string, Active_operatorsVersion string, Active_= phonePADPartitionedVersions string, Latest_YEAR int, Latest_MONTH int, Late= st_DAY int, Latest_HOUR string, Latest_areaId string, Latest_country string= , Latest_province string, Latest_city string, Latest_district string, Lates= t_street string, Latest_releaseId string, Latest_EMUIVersion string, Latest= _operaSysVersion string, Latest_BacVerNumber string, Latest_BacFlashVer str= ing, Latest_webUIVersion string, Latest_webUITypeCarrVer string, Latest_web= TypeDataVerNumber string, Latest_operatorsVersion string, Latest_phonePADPa= rtitionedVersions string, Latest_operatorId string, gamePointDescription st= ring,gamePointId double,contractNumber double,imei_count int) STORED BY 'or= g.apache.carbondata.format' TBLPROPERTIES ('DICTIONARY_INCLUDE'=3D'deviceIn= formationId,Latest_YEAR,Latest_MONTH,Latest_DAY')" > 2:Load Data with following command > " LOAD DATA INPATH 'HDFS_URL/BabuStore/Data/HiveData' INTO TABLE Carbon_= automation OPTIONS('DELIMITER'=3D',','QUOTECHAR'=3D'"','BAD_RECORDS_ACTION'= =3D'FORCE','FILEHEADER'=3D'imei,deviceInformationId,MAC,deviceColor,device_= backColor,modelId,marketName,AMSize,ROMSize,CUPAudit,CPIClocked,series,prod= uctionDate,bomCode,internalModels,deliveryTime,channelsId,channelsName,deli= veryAreaId,deliveryCountry,deliveryProvince,deliveryCity,deliveryDistrict,d= eliveryStreet,oxSingleNumber,contractNumber,ActiveCheckTime,ActiveAreaId,Ac= tiveCountry,ActiveProvince,Activecity,ActiveDistrict,ActiveStreet,ActiveOpe= ratorId,Active_releaseId,Active_EMUIVersion,Active_operaSysVersion,Active_B= acVerNumber,Active_BacFlashVer,Active_webUIVersion,Active_webUITypeCarrVer,= Active_webTypeDataVerNumber,Active_operatorsVersion,Active_phonePADPartitio= nedVersions,Latest_YEAR,Latest_MONTH,Latest_DAY,Latest_HOUR,Latest_areaId,L= atest_country,Latest_province,Latest_city,Latest_district,Latest_street,Lat= est_releaseId,Latest_EMUIVersion,Latest_operaSysVersion,Latest_BacVerNumber= ,Latest_BacFlashVer,Latest_webUIVersion,Latest_webUITypeCarrVer,Latest_webT= ypeDataVerNumber,Latest_operatorsVersion,Latest_phonePADPartitionedVersions= ,Latest_operatorId,gamePointId,gamePointDescription,imei_count')" > 3:Now run the Select Query: > " select imei,gamePointId, channelsId,series from Carbon_automation wher= e channelsId >=3D10 OR channelsId <=3D1 or series=3D'7Series' " > 4:Result Displays=20 > " 0: jdbc:hive2://localhost:10000> select imei,gamePointId, channelsId,se= ries from Carbon_automation where channelsId >=3D10 OR channelsId <=3D1 or= series=3D'7Series'; > +-------------+--------------+-------------+----------+--+ > | imei | gamePointId | channelsId | series | > +-------------+--------------+-------------+----------+--+ > | 1AA1 | 2738.562 | 4 | 7Series | > | 1AA10 | 1714.635 | 4 | 7Series | > | 1AA100 | 1271.0 | 6 | 5Series | > | 1AA1000 | 692.0 | 3 | 5Series | > | 1AA10000 | 2175.0 | 1 | 7Series | > | 1AA100000 | 136.0 | 6 | 9Series | > | 1AA1000000 | 1600.0 | 6 | 7Series | > | 1AA100001 | 505.0 | 7 | 0Series | > | 1AA100002 | 1341.0 | 3 | 0Series | > | 1AA100003 | 2239.0 | 3 | 5Series | > | 1AA100004 | 2970.0 | 2 | 4Series | > | 1AA100005 | 2593.0 | 1 | 1Series | > | 1AA100006 | 2572.0 | 2 | 6Series | > | 1AA100007 | 1991.0 | 3 | 9Series | > | 1AA100008 | 1442.0 | 1 | 8Series | > | 1AA100009 | 1841.0 | 3 | 0Series | > | 1AA10001 | 298.0 | 5 | 2Series | > | 1AA100010 | 79.0 | 6 | 3Series | > | 1AA100011 | 202.0 | 1 | 0Series | > | 1AA100012 | 568.0 | 2 | 4Series | > | 1AA100013 | 355.0 | 6 | 1Series | > | 1AA100014 | 151.0 | 3 | 5Series | > | 1AA100015 | 2863.0 | 1 | 4Series | > | 1AA100016 | 1873.0 | 3 | 3Series | > | 1AA100017 | 2205.0 | 3 | 9Series | > | 1AA100018 | 441.0 | 4 | 8Series | > | 1AA100019 | 2194.0 | 3 | 5Series | > | 1AA10002 | 2972.0 | 5 | 0Series | > | 1AA100020 | 256.0 | 7 | 5Series | > | 1AA100021 | 1778.0 | 6 | 0Series | > | 1AA100022 | 1999.0 | 5 | 5Series | > | 1AA100023 | 2194.0 | 3 | 5Series | > | 1AA100024 | 2483.0 | 2 | 6Series | > | 1AA100025 | 1724.0 | 1 | 0Series | > | 1AA100026 | 1768.0 | 7 | 7Series | > | 1AA100027 | 2436.0 | 4 | 0Series | > | 1AA100028 | 2849.0 | 5 | 5Series | > | 1AA100029 | 1691.0 | 5 | 2Series | > | 1AA10003 | 2071.0 | 4 | 7Series | > | 1AA100030 | 1333.0 | 3 | 7Series | > | 1AA100031 | 1080.0 | 1 | 7Series | > | 1AA100032 | 1053.0 | 7 | 1Series | > | 1AA100033 | 760.0 | 6 | 8Series | > | 1AA100034 | 2061.0 | 6 | 2Series | > | 1AA100035 | 2142.0 | 7 | 5Series | > | 1AA100036 | 2224.0 | 5 | 5Series | > | 1AA100037 | 1015.0 | 6 | 7Series | > | 1AA100038 | 1229.0 | 3 | 6Series | > | 1AA100039 | 1750.0 | 1 | 8Series | > | 1AA10004 | 1717.0 | 4 | 5Series | > | 1AA100040 | 2078.0 | 7 | 8Series | > | 1AA100041 | 2734.0 | 1 | 5Series | > | 1AA100042 | 2745.0 | 5 | 3Series | > | 1AA100043 | 571.0 | 6 | 9Series | > | 1AA100044 | 1697.0 | 2 | 8Series | > | 1AA100045 | 2553.0 | 6 | 2Series | > | 1AA100046 | 1077.0 | 4 | 3Series | > | 1AA100047 | 1823.0 | 1 | 9Series | > | 1AA100048 | 2399.0 | 1 | 3Series | > | 1AA100049 | 2890.0 | 6 | 0Series | > | 1AA10005 | 1608.0 | 2 | 8Series | > | 1AA100050 | 29.0 | 1 | 2Series | > | 1AA100051 | 1407.0 | 7 | 2Series | > | 1AA100052 | 845.0 | 7 | 6Series | > | 1AA100053 | 1655.0 | 3 | 2Series | > | 1AA100054 | 1368.0 | 2 | 7Series | > | 1AA100055 | 1728.0 | 7 | 7Series | > | 1AA100056 | 750.0 | 5 | 6Series | > | 1AA100057 | 2288.0 | 6 | 9Series | > | 1AA100058 | 2635.0 | 4 | 5Series | > | 1AA100059 | 1337.0 | 7 | 4Series | > | 1AA10006 | 2478.0 | 5 | 3Series | > | 1AA100060 | 538.0 | 4 | 8Series | > | 1AA100061 | 1407.0 | 6 | 6Series | > | 1AA100062 | 2952.0 | 6 | 9Series | > | 1AA100063 | 1226.0 | 3 | 2Series | > | 1AA100064 | 865.0 | 7 | 6Series | > | 1AA100065 | 901.0 | 7 | 0Series | > | 1AA100066 | 1864.0 | 4 | 6Series | > | 1AA100067 | 572.0 | 7 | 4Series | > | 1AA100068 | 412.0 | 7 | 8Series | > | 1AA100069 | 1491.0 | 5 | 8Series | > | 1AA10007 | 1350.0 | 3 | 8Series | > | 1AA100070 | 1567.0 | 3 | 0Series | > | 1AA100071 | 1973.0 | 5 | 0Series | > | 1AA100072 | 448.0 | 7 | 4Series | > | 1AA100073 | 2488.0 | 2 | 4Series | > | 1AA100074 | 907.0 | 7 | 6Series | > | 1AA100075 | 2507.0 | 6 | 3Series | > | 1AA100076 | 732.0 | 7 | 0Series | > | 1AA100077 | 2077.0 | 6 | 3Series | > | 1AA100078 | 1434.0 | 5 | 2Series | > | 1AA100079 | 1098.0 | 6 | 4Series | > | 1AA10008 | 813.0 | 4 | 5Series | > | 1AA100080 | 954.0 | 6 | 9Series | > | 1AA100081 | 613.0 | 2 | 5Series | > | 1AA100082 | 2348.0 | 7 | 5Series | > | 1AA100083 | 2192.0 | 2 | 0Series | > | 1AA100084 | 2826.0 | 4 | 0Series | > +-------------+--------------+-------------+----------+--+ > 99 rows selected (0.221 seconds) > " > 5:Csv attached "100_hive_test.csv" -- This message was sent by Atlassian JIRA (v6.3.15#6346)