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 1C9F1200BB1 for ; Wed, 19 Oct 2016 12:47:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1B314160ADE; Wed, 19 Oct 2016 10:47:03 +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 6180A160AEA for ; Wed, 19 Oct 2016 12:47:02 +0200 (CEST) Received: (qmail 48169 invoked by uid 500); 19 Oct 2016 10:47:01 -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 48160 invoked by uid 99); 19 Oct 2016 10:47:01 -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; Wed, 19 Oct 2016 10:47:01 +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 1420E1A08D2 for ; Wed, 19 Oct 2016 10:47:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] 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 1W-ZZhYhijvL for ; Wed, 19 Oct 2016 10:47:00 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 3D3785FAD8 for ; Wed, 19 Oct 2016 10:46:59 +0000 (UTC) Received: (qmail 48048 invoked by uid 99); 19 Oct 2016 10:46:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2016 10:46:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 502E52C0073 for ; Wed, 19 Oct 2016 10:46:58 +0000 (UTC) Date: Wed, 19 Oct 2016 10:46:58 +0000 (UTC) From: "Prabhat Kashyap (JIRA)" To: issues@carbondata.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CARBONDATA-326) Creates wrong table on 'create table like' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 19 Oct 2016 10:47:03 -0000 Prabhat Kashyap created CARBONDATA-326: ------------------------------------------ Summary: Creates wrong table on 'create table like' Key: CARBONDATA-326 URL: https://issues.apache.org/jira/browse/CARBONDATA-326 Project: CarbonData Issue Type: Bug Reporter: Prabhat Kashyap I'm trying to create a table like my old table but it is not creating as expected. 0: jdbc:hive2://localhost:10000> CREATE TABLE mainTable(id INT, name STRING) STORED BY 'carbondata'; +---------+--+ | Result | +---------+--+ +---------+--+ No rows selected (0.206 seconds) 0: jdbc:hive2://localhost:10000> DESC mainTable; +-----------+------------+----------+--+ | col_name | data_type | comment | +-----------+------------+----------+--+ | name | string | | | id | bigint | | +-----------+------------+----------+--+ 2 rows selected (0.056 seconds) Above one is my mainTable and I wants to create copiedTable from it but everytime it is show something like: 0: jdbc:hive2://localhost:10000> CREATE TABLE copiedTable LIKE mainTable; +---------+--+ | result | +---------+--+ +---------+--+ No rows selected (0.101 seconds) 0: jdbc:hive2://localhost:10000> DESC copiedTable; +-----------+----------------+--------------------+--+ | col_name | data_type | comment | +-----------+----------------+--------------------+--+ | col | array | from deserializer | +-----------+----------------+--------------------+--+ 1 row selected (0.022 seconds) 0: jdbc:hive2://localhost:10000> LOAD DATA LOCAL INPATH 'hdfs://localhost:54310/user/hduser/datafiles/data.csv' INTO TABLE copiedTable OPTIONS('DELIMITER'=','); Error: java.lang.RuntimeException: Data loading failed. table not found: knoldus.copiedtable (state=,code=0) 0: jdbc:hive2://localhost:10000> select * from copiedTable; +------+--+ | col | +------+--+ +------+--+ No rows selected (0.11 seconds) -- This message was sent by Atlassian JIRA (v6.3.4#6332)