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 B623D200B54 for ; Thu, 28 Jul 2016 17:58:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B2ED7160A85; Thu, 28 Jul 2016 15:58:16 +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 03D35160A56 for ; Thu, 28 Jul 2016 17:58:15 +0200 (CEST) Received: (qmail 72572 invoked by uid 500); 28 Jul 2016 15:58:15 -0000 Mailing-List: contact dev-help@hawq.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hawq.incubator.apache.org Delivered-To: mailing list dev@hawq.incubator.apache.org Received: (qmail 72561 invoked by uid 99); 28 Jul 2016 15:58:15 -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; Thu, 28 Jul 2016 15:58:15 +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 B9A3F189806 for ; Thu, 28 Jul 2016 15:58:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.446 X-Spam-Level: X-Spam-Status: No, score=-3.446 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, 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=-1.426] autolearn=disabled Received: from mx2-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 WaFW96QqG-Oo for ; Thu, 28 Jul 2016 15:58:12 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id 6967C5F256 for ; Thu, 28 Jul 2016 15:58:11 +0000 (UTC) Received: (qmail 72477 invoked by uid 99); 28 Jul 2016 15:58:10 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2016 15:58:10 +0000 Received: from mail-qt0-f170.google.com (mail-qt0-f170.google.com [209.85.216.170]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 502C31A0221 for ; Thu, 28 Jul 2016 15:58:10 +0000 (UTC) Received: by mail-qt0-f170.google.com with SMTP id w38so50978397qtb.0 for ; Thu, 28 Jul 2016 08:58:10 -0700 (PDT) X-Gm-Message-State: AEkoouu8SMM03g61pZ0rJDDQB/EWaVpos6nCiQvZgmQHvv5q3rKK9Vlqy0VXh8mFlA+j8OfKDwC+Rxu4ZCS+tPxi X-Received: by 10.200.57.108 with SMTP id t41mr57778441qtb.33.1469721489405; Thu, 28 Jul 2016 08:58:09 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Goden Yao Date: Thu, 28 Jul 2016 15:57:59 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: COPY command for external tables To: dev@hawq.incubator.apache.org Content-Type: multipart/alternative; boundary=001a113f3d024baa8e0538b43352 archived-at: Thu, 28 Jul 2016 15:58:16 -0000 --001a113f3d024baa8e0538b43352 Content-Type: text/plain; charset=UTF-8 The scenario is 1. user creates an external writable table, 2. copy data into that external writable table. 3. query that external writable table (by creating another readable table) I think user doesn't copy to internal tables due to some possible reasons: the format is not supported by hawq internal tables (in JIRA , it was a text file) As for https://issues.apache.org/jira/browse/HAWQ-956 , I put milestone as backlog and welcome further discussion. On Thu, Jul 28, 2016 at 2:22 AM Lili Ma wrote: > Hi Alex, > > Could you kindly share the user scenario for copying data to external > table? Why don't we copy to internal table directly? Thanks :) I thought > external table can directly points to the file which we need copy when > created. > > Thanks > Lili > > 2016-07-28 6:53 GMT+08:00 Oleksandr Diachenko : > > > Hi, > > > > Recently we discovered that COPY command for external tables is not > > transactional. > > It means if user is running COPY command and during this process > underlying > > HDFS fails - the end state of table is inconstant. > > As a result I filled a JIRA - > > https://issues.apache.org/jira/browse/HAWQ-956 > > . > > > > From user perspective, COPY command might also need to support additional > > options, to make import/export process more flexible. > > > > - Number of error lines to tolerate. > > - Batch size to commit. > > - TBD > > > > Please feel free to join discussion. > > > > Regards, Alex. > > > --001a113f3d024baa8e0538b43352--