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 E5C33200D70 for ; Fri, 22 Dec 2017 07:14:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E481D160C2E; Fri, 22 Dec 2017 06:14:04 +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 35CB0160C2B for ; Fri, 22 Dec 2017 07:14:04 +0100 (CET) Received: (qmail 46489 invoked by uid 500); 22 Dec 2017 06:14:03 -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 46480 invoked by uid 99); 22 Dec 2017 06:14:03 -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; Fri, 22 Dec 2017 06:14:03 +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 AC5731A031B for ; Fri, 22 Dec 2017 06:14:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.992 X-Spam-Level: X-Spam-Status: No, score=-99.992 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id aCAVy0jGy4ac for ; Fri, 22 Dec 2017 06:14:01 +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 3E2145F5B4 for ; Fri, 22 Dec 2017 06:14:01 +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 79382E0041 for ; Fri, 22 Dec 2017 06:14:00 +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 3A1BF212F7 for ; Fri, 22 Dec 2017 06:14:00 +0000 (UTC) Date: Fri, 22 Dec 2017 06:14:00 +0000 (UTC) From: "Liang Chen (JIRA)" To: issues@carbondata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CARBONDATA-1920) Sparksql query result is not same as presto on same sql MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 22 Dec 2017 06:14:05 -0000 [ https://issues.apache.org/jira/browse/CARBONDATA-1920?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:all-tabpanel ] Liang Chen resolved CARBONDATA-1920. ------------------------------------ Resolution: Fixed Fix Version/s: 1.3.0 > Sparksql query result is not same as presto on same sql=20 > -------------------------------------------------------- > > Key: CARBONDATA-1920 > URL: https://issues.apache.org/jira/browse/CARBONDATA-192= 0 > Project: CarbonData > Issue Type: Bug > Components: presto-integration > Affects Versions: 1.3.0 > Environment: spark2.1,presto 0.187 > Reporter: anubhav tarar > Assignee: anubhav tarar > Fix For: 1.3.0 > > Time Spent: 1h 10m > Remaining Estimate: 0h > > i use carbondata version is 1.2.0 and spark version is 1.6.0. > in my test case > 1.Creating a Table > cc.sql("create table IF NOT EXISTS test.table5(id string,name > String,city String,age int) stored by 'carbondata' * > tblproperties('DICTIONARY_INCLUDE' =3D 'age')* ") > 2.load csv data into table,data like this: > id,name,city,age > 1,david,shenzhen,31 > 88,eason,shenzhen,27 > 3,jarry,wuhan,35 > 3.select from sparksql,result is : > +-----+--------+-----------+------+--+ > | id | name | city | age | > +-----+--------+-----------+------+--+ > | 1 | david | shenzhen | 31 | > | 3 | jarry | wuhan | 35 | > | 88 | eason | shenzhen | 27 | > +-----+--------+-----------+------+--+ > this result is correct > 4.select from presto,result is: > id | name | city | age > ----+-------+----------+----- > 1 | david | shenzhen | 3 > 3 | jarry | wuhan | 4 > 88 | eason | shenzhen | 2 > (3 rows) > look at the age filed,is wrong > I know why this happens because I used dictionary encoding in the age fie= ld=E3=80=82 -- This message was sent by Atlassian JIRA (v6.4.14#64029)