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 2349F200D4C for ; Wed, 15 Nov 2017 11:05:11 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 21676160BF6; Wed, 15 Nov 2017 10:05: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 6DF66160BEA for ; Wed, 15 Nov 2017 11:05:10 +0100 (CET) Received: (qmail 69089 invoked by uid 500); 15 Nov 2017 10:05: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 68887 invoked by uid 99); 15 Nov 2017 10:05:03 -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 Nov 2017 10:05:03 +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 191A8C8DE7 for ; Wed, 15 Nov 2017 10:05:03 +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-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 z1hxFSvgkEyw for ; Wed, 15 Nov 2017 10:05:02 +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 3191E5FBEA for ; Wed, 15 Nov 2017 10:05: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 5FDD3E00E5 for ; Wed, 15 Nov 2017 10:05: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 209D623F05 for ; Wed, 15 Nov 2017 10:05:00 +0000 (UTC) Date: Wed, 15 Nov 2017 10:05:00 +0000 (UTC) From: "Ramakrishna S (JIRA)" To: issues@carbondata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CARBONDATA-1713) Carbon1.3.0-Pre-AggregateTable - Aggregate query on main table fails after creating pre-aggregate table MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 15 Nov 2017 10:05:11 -0000 [ https://issues.apache.org/jira/browse/CARBONDATA-1713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16253213#comment-16253213 ] Ramakrishna S commented on CARBONDATA-1713: ------------------------------------------- Changing severity based on the clarification given. > Carbon1.3.0-Pre-AggregateTable - Aggregate query on main table fails after creating pre-aggregate table > ------------------------------------------------------------------------------------------------------- > > Key: CARBONDATA-1713 > URL: https://issues.apache.org/jira/browse/CARBONDATA-1713 > Project: CarbonData > Issue Type: Bug > Components: data-query > Affects Versions: 1.3.0 > Environment: ANT Test cluster - 3 node > Reporter: Ramakrishna S > Assignee: kumar vishal > Priority: Minor > Labels: sanity > Fix For: 1.3.0 > > Time Spent: 10m > Remaining Estimate: 0h > > 0: jdbc:hive2://10.18.98.34:23040> load data inpath "hdfs://hacluster/user/test/lineitem.tbl.1" into table lineitem options('DELIMITER'='|','FILEHEADER'='L_ORDERKEY,L_PARTKEY,L_SUPPKEY,L_LINENUMBER,L_QUANTITY,L_EXTENDEDPRICE,L_DISCOUNT,L_TAX,L_RETURNFLAG,L_LINESTATUS,L_SHIPDATE,L_COMMITDATE,L_RECEIPTDATE,L_SHIPINSTRUCT,L_SHIPMODE,L_COMMENT'); > Error: org.apache.spark.sql.catalyst.analysis.NoSuchTableException: Table or view 'lineitem' not found in database 'default'; (state=,code=0) > 0: jdbc:hive2://10.18.98.34:23040> create table if not exists lineitem( > 0: jdbc:hive2://10.18.98.34:23040> L_SHIPDATE string, > 0: jdbc:hive2://10.18.98.34:23040> L_SHIPMODE string, > 0: jdbc:hive2://10.18.98.34:23040> L_SHIPINSTRUCT string, > 0: jdbc:hive2://10.18.98.34:23040> L_RETURNFLAG string, > 0: jdbc:hive2://10.18.98.34:23040> L_RECEIPTDATE string, > 0: jdbc:hive2://10.18.98.34:23040> L_ORDERKEY string, > 0: jdbc:hive2://10.18.98.34:23040> L_PARTKEY string, > 0: jdbc:hive2://10.18.98.34:23040> L_SUPPKEY string, > 0: jdbc:hive2://10.18.98.34:23040> L_LINENUMBER int, > 0: jdbc:hive2://10.18.98.34:23040> L_QUANTITY double, > 0: jdbc:hive2://10.18.98.34:23040> L_EXTENDEDPRICE double, > 0: jdbc:hive2://10.18.98.34:23040> L_DISCOUNT double, > 0: jdbc:hive2://10.18.98.34:23040> L_TAX double, > 0: jdbc:hive2://10.18.98.34:23040> L_LINESTATUS string, > 0: jdbc:hive2://10.18.98.34:23040> L_COMMITDATE string, > 0: jdbc:hive2://10.18.98.34:23040> L_COMMENT string > 0: jdbc:hive2://10.18.98.34:23040> ) STORED BY 'org.apache.carbondata.format' > 0: jdbc:hive2://10.18.98.34:23040> TBLPROPERTIES ('table_blocksize'='128','NO_INVERTED_INDEX'='L_SHIPDATE,L_SHIPMODE,L_SHIPINSTRUCT,L_RETURNFLAG,L_RECEIPTDATE,L_ORDERKEY,L_PARTKEY,L_SUPPKEY','sort_columns'=''); > +---------+--+ > | Result | > +---------+--+ > +---------+--+ > No rows selected (0.338 seconds) > 0: jdbc:hive2://10.18.98.34:23040> load data inpath "hdfs://hacluster/user/test/lineitem.tbl.1" into table lineitem options('DELIMITER'='|','FILEHEADER'='L_ORDERKEY,L_PARTKEY,L_SUPPKEY,L_LINENUMBER,L_QUANTITY,L_EXTENDEDPRICE,L_DISCOUNT,L_TAX,L_RETURNFLAG,L_LINESTATUS,L_SHIPDATE,L_COMMITDATE,L_RECEIPTDATE,L_SHIPINSTRUCT,L_SHIPMODE,L_COMMENT'); > +---------+--+ > | Result | > +---------+--+ > +---------+--+ > No rows selected (48.634 seconds) > 0: jdbc:hive2://10.18.98.34:23040> create datamap agr_lineitem ON TABLE lineitem USING "org.apache.carbondata.datamap.AggregateDataMapHandler" as select L_RETURNFLAG,L_LINESTATUS,sum(L_QUANTITY),sum(L_EXTENDEDPRICE) from lineitem group by L_RETURNFLAG, L_LINESTATUS; > +---------+--+ > | Result | > +---------+--+ > +---------+--+ > No rows selected (16.552 seconds) > 0: jdbc:hive2://10.18.98.34:23040> select L_RETURNFLAG,L_LINESTATUS,sum(L_QUANTITY),sum(L_EXTENDEDPRICE) from lineitem group by L_RETURNFLAG, L_LINESTATUS; > Error: org.apache.spark.sql.AnalysisException: Column doesnot exists in Pre Aggregate table; (state=,code=0) -- This message was sent by Atlassian JIRA (v6.4.14#64029)