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 2FA1C200D3A for ; Wed, 1 Nov 2017 07:08:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2E2B41609EF; Wed, 1 Nov 2017 06:08: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 4DCC8160BF9 for ; Wed, 1 Nov 2017 07:08:09 +0100 (CET) Received: (qmail 58793 invoked by uid 500); 1 Nov 2017 06:08: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 58783 invoked by uid 99); 1 Nov 2017 06:08:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2017 06:08:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A8DCA180805 for ; Wed, 1 Nov 2017 06:08:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id hX_6RCRBPhuk for ; Wed, 1 Nov 2017 06:08:06 +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 62EA95F666 for ; Wed, 1 Nov 2017 06:08: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 C336CE0F07 for ; Wed, 1 Nov 2017 06:08: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 370C2212F9 for ; Wed, 1 Nov 2017 06:08:02 +0000 (UTC) Date: Wed, 1 Nov 2017 06:08:02 +0000 (UTC) From: "Vandana Yadav (JIRA)" To: issues@carbondata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CARBONDATA-1661) Incorrect output of select query with timestamp data type on presto CLI MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 01 Nov 2017 06:08:10 -0000 [ https://issues.apache.org/jira/browse/CARBONDATA-1661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vandana Yadav updated CARBONDATA-1661: -------------------------------------- Description: Incorrect output of select query with timestamp data type on presto CLI Steps to Reproduce: On Beeline: 1) Create Table: CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES ("TABLE_BLOCKSIZE"= "256 MB") 2)Load Data: LOAD DATA INPATH 'HDFS_URL/BabuStore/Data/uniqdata/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1') 3) Start presto server: bin/launcher run 4) run presto CLI: ./presto --server localhost:9000 --catalog carbondata --schema newpresto On presto CLI 1) Execute select Query: select cust_name from uniqdata where dob= cast('1970-01-11 01:00:03.000' as timestamp); 2)Expected Result: it should display correct output as on beeline: +------------------+--+ | cust_name | +------------------+--+ | CUST_NAME_00010 | +------------------+--+ 3) Actual Result: cust_name ----------- (0 rows) Query 20171031_084306_00030_k9q68, FINISHED, 1 node Splits: 17 total, 17 done (100.00%) 0:00 [0 rows, 0B] [0 rows/s, 0B/s] was: Incorrect output of select query with timestamp data type on presto CLI Steps to Reproduce: On Beeline: 1) Create Table: CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES ("TABLE_BLOCKSIZE"= "256 MB") 2)Load Data: LOAD DATA INPATH 'HDFS_URL/BabuStore/Data/uniqdata/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1') 3) Start presto server: bin/launcher run 4) run presto CLI: ./presto --server localhost:8080 --catalog hive --schema default On presto CLI 1) Execute select Query: select cust_name from uniqdata where dob= cast('1970-01-11 01:00:03.000' as timestamp); 2)Expected Result: it should display correct output as on beeline: +------------------+--+ | cust_name | +------------------+--+ | CUST_NAME_00010 | +------------------+--+ 3) Actual Result: cust_name ----------- (0 rows) Query 20171031_084306_00030_k9q68, FINISHED, 1 node Splits: 17 total, 17 done (100.00%) 0:00 [0 rows, 0B] [0 rows/s, 0B/s] > Incorrect output of select query with timestamp data type on presto CLI > ----------------------------------------------------------------------- > > Key: CARBONDATA-1661 > URL: https://issues.apache.org/jira/browse/CARBONDATA-1661 > Project: CarbonData > Issue Type: Bug > Components: data-query > Affects Versions: 1.3.0 > Environment: spark 2.1 > Reporter: Vandana Yadav > Priority: Minor > Attachments: 2000_UniqData.csv > > > Incorrect output of select query with timestamp data type on presto CLI > Steps to Reproduce: > On Beeline: > 1) Create Table: > CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES ("TABLE_BLOCKSIZE"= "256 MB") > 2)Load Data: > LOAD DATA INPATH 'HDFS_URL/BabuStore/Data/uniqdata/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1') > 3) Start presto server: > bin/launcher run > 4) run presto CLI: > ./presto --server localhost:9000 --catalog carbondata --schema newpresto > On presto CLI > 1) Execute select Query: > select cust_name from uniqdata where dob= cast('1970-01-11 01:00:03.000' as timestamp); > 2)Expected Result: it should display correct output as on beeline: > +------------------+--+ > | cust_name | > +------------------+--+ > | CUST_NAME_00010 | > +------------------+--+ > 3) Actual Result: > cust_name > ----------- > (0 rows) > Query 20171031_084306_00030_k9q68, FINISHED, 1 node > Splits: 17 total, 17 done (100.00%) > 0:00 [0 rows, 0B] [0 rows/s, 0B/s] -- This message was sent by Atlassian JIRA (v6.4.14#64029)