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 B1F19200C09 for ; Wed, 11 Jan 2017 03:23:34 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B0B37160B4B; Wed, 11 Jan 2017 02:23:34 +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 06754160B3D for ; Wed, 11 Jan 2017 03:23:33 +0100 (CET) Received: (qmail 29361 invoked by uid 500); 11 Jan 2017 02:23:33 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 29348 invoked by uid 99); 11 Jan 2017 02:23:33 -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, 11 Jan 2017 02:23:33 +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 77B57C1B04 for ; Wed, 11 Jan 2017 02:23:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Y1LMx8eGTqaP for ; Wed, 11 Jan 2017 02:23:31 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 8F32B5F1EE for ; Wed, 11 Jan 2017 02:23:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id v0B2NUXW005054; Wed, 11 Jan 2017 02:23:30 GMT Message-Id: <201701110223.v0B2NUXW005054@ip-10-146-233-104.ec2.internal> Date: Wed, 11 Jan 2017 02:23:30 +0000 From: "Todd Lipcon (Code Review)" To: John Russell , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Matthew Jacobs , Dimitris Tsirogiannis , Todd Lipcon , Jean-Daniel Cryans , Ambreen Kazi Reply-To: todd@apache.org X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_Updates_to_DML_statements_for_Impala_+_Kudu=0A?= X-Gerrit-Change-Id: I60512b7957fb53d86d3123a4f1d46fbb355f4665 X-Gerrit-ChangeURL: X-Gerrit-Commit: e611e50df6cf7de21cc91c2bb05c6507556e5456 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.2 archived-at: Wed, 11 Jan 2017 02:23:34 -0000 Todd Lipcon has posted comments on this change. Change subject: Updates to DML statements for Impala + Kudu ...................................................................... Patch Set 1: (4 comments) http://gerrit.cloudera.org:8080/#/c/5646/1/docs/topics/impala_delete.xml File docs/topics/impala_delete.xml: Line 49: DELETE [FROM] [database_name].table_name [ WHERE where_conditions ] I think there is another form to describe: DELETE FROM WHERE .. eg: DELETE t1 from todd_test t1 JOIN todd_test2 t2 ON t1.o_orderkey = t2.o_orderkey; PS1, Line 65:

: Normally, a DELETE operation for a Kudu table fails if : some partition key columns are not found, due to their being deleted or changed : by a concurrent UPDATE or DELETE operation. : Specify DELETE IGNORE rest_of_statement to : make the DELETE continue in this case. The rows with the nonexistent : duplicate partition key column values are not removed. :

I don't think this is relevant anymore (the IGNORE keyword is gone) Line 101: Yes it can, using syntax like: DELETE c FROM my_second_table c, stock_symbols s WHERE c.name = s.symbol; (but it only deletes from one of the tables) Can also use JOIN syntax as shown above http://gerrit.cloudera.org:8080/#/c/5646/1/docs/topics/impala_update.xml File docs/topics/impala_update.xml: Line 50: [ WHERE where_conditions ] similar to my comment on the DELETE, this can support UPDATE with JOIN -- To view, visit http://gerrit.cloudera.org:8080/5646 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I60512b7957fb53d86d3123a4f1d46fbb355f4665 Gerrit-PatchSet: 1 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: John Russell Gerrit-Reviewer: Ambreen Kazi Gerrit-Reviewer: Dimitris Tsirogiannis Gerrit-Reviewer: Jean-Daniel Cryans Gerrit-Reviewer: John Russell Gerrit-Reviewer: Matthew Jacobs Gerrit-Reviewer: Todd Lipcon Gerrit-HasComments: Yes