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 243B4200C73 for ; Wed, 10 May 2017 14:19:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2258A160BB4; Wed, 10 May 2017 12:19:11 +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 426AF160BA8 for ; Wed, 10 May 2017 14:19:10 +0200 (CEST) Received: (qmail 30222 invoked by uid 500); 10 May 2017 12:19:08 -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 30213 invoked by uid 99); 10 May 2017 12:19:08 -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, 10 May 2017 12:19:08 +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 51212C11E2 for ; Wed, 10 May 2017 12:19:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 123cDOHjUXDr for ; Wed, 10 May 2017 12:19:06 +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 DC7755FCC2 for ; Wed, 10 May 2017 12:19: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 097ECE0D53 for ; Wed, 10 May 2017 12:19:05 +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 5D15B21E0E for ; Wed, 10 May 2017 12:19:04 +0000 (UTC) Date: Wed, 10 May 2017 12:19:04 +0000 (UTC) From: "Ravindra Pesala (JIRA)" To: issues@carbondata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CARBONDATA-707) Less ( < ) than operator 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, 10 May 2017 12:19:11 -0000 [ https://issues.apache.org/jira/browse/CARBONDATA-707?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ravindra Pesala resolved CARBONDATA-707. ---------------------------------------- Resolution: Fixed Fix Version/s: 1.1.0 On current master it is already fixed. > Less ( < ) than operator does not work properly in carbondata.=20 > --------------------------------------------------------------- > > Key: CARBONDATA-707 > URL: https://issues.apache.org/jira/browse/CARBONDATA-707 > Project: CarbonData > Issue Type: Bug > Components: sql > Affects Versions: 1.1.0 > Environment: Spark 2.1 > Reporter: SWATI RAO > Priority: Minor > Fix For: 1.1.0 > > Attachments: 100_hive_test.csv > > > Incorrect result displays=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,marketNam= e string,AMSize string,ROMSize string,CUPAudit string,CPIClocked string,ser= ies string,productionDate timestamp,bomCode string,internalModels string, d= eliveryTime string, channelsId string, channelsName string , deliveryAreaId= string, deliveryCountry string, deliveryProvince string, deliveryCity stri= ng,deliveryDistrict string, deliveryStreet string, oxSingleNumber string, A= ctiveCheckTime string, ActiveAreaId string, ActiveCountry string, ActivePro= vince string, Activecity string, ActiveDistrict string, ActiveStreet string= , ActiveOperatorId string, Active_releaseId string, Active_EMUIVersion stri= ng, Active_operaSysVersion string, Active_BacVerNumber string, Active_BacFl= ashVer string, Active_webUIVersion string, Active_webUITypeCarrVer string,A= ctive_webTypeDataVerNumber string, Active_operatorsVersion string, Active_p= honePADPartitionedVersions string, Latest_YEAR int, Latest_MONTH int, Lates= t_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_= operaSysVersion string, Latest_BacVerNumber string, Latest_BacFlashVer stri= ng, Latest_webUIVersion string, Latest_webUITypeCarrVer string, Latest_webT= ypeDataVerNumber string, Latest_operatorsVersion string, Latest_phonePADPar= titionedVersions string, Latest_operatorId string, gamePointDescription str= ing,gamePointId double,contractNumber double,imei_count int) STORED BY 'org= .apache.carbondata.format' TBLPROPERTIES ('DICTIONARY_INCLUDE'=3D'deviceInf= ormationId,Latest_YEAR,Latest_MONTH,Latest_DAY')" > 2:Load Data with following command > " LOAD DATA INPATH 'HDFS_URL/BabuStore/Data/HiveData' INTO TABLE Carbon_a= utomation 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:Run the Query=20 > " Select imei,gamePointId, channelsId,series from Carbon_automation where= channelsId < 4 ORDER BY gamePointId limit 5 " > 4:Incorrect Result displays as follows: > +------------+--------------+-------------+----------+--+ > | imei | gamePointId | channelsId | series | > +------------+--------------+-------------+----------+--+ > | 1AA100050 | 29.0 | 1 | 2Series | > | 1AA100014 | 151.0 | 3 | 5Series | > | 1AA100011 | 202.0 | 1 | 0Series | > | 1AA100018 | 441.0 | 4 | 8Series | > | 1AA100060 | 538.0 | 4 | 8Series | > +------------+--------------+-------------+----------+--+ > 5 rows selected (0.237 seconds) > 5:CSV Attached: "100_hive_test.csv" > Expected Result: It should not display channel id 4 as per query. -- This message was sent by Atlassian JIRA (v6.3.15#6346)