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 A5377200CBA for ; Mon, 3 Jul 2017 09:42:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A38DB160BEC; Mon, 3 Jul 2017 07:42:12 +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 EA761160BE4 for ; Mon, 3 Jul 2017 09:42:11 +0200 (CEST) Received: (qmail 69168 invoked by uid 500); 3 Jul 2017 07:42:05 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 69157 invoked by uid 99); 3 Jul 2017 07:42:05 -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; Mon, 03 Jul 2017 07:42:05 +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 64B97C6A8E for ; Mon, 3 Jul 2017 07:42:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.01 X-Spam-Level: X-Spam-Status: No, score=-100.01 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_RED=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 M_0fwwoHWD2a for ; Mon, 3 Jul 2017 07:42:03 +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 CAC415FB84 for ; Mon, 3 Jul 2017 07:42:02 +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 24796E0069 for ; Mon, 3 Jul 2017 07:42:02 +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 28F93245EA for ; Mon, 3 Jul 2017 07:42:00 +0000 (UTC) Date: Mon, 3 Jul 2017 07:42:00 +0000 (UTC) From: =?utf-8?Q?Fr=C3=A9d=C3=A9ric_ESCANDELL_=28JIRA=29?= To: dev@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-17013) Delete request with a subquery based on select over a view MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 03 Jul 2017 07:42:12 -0000 Fr=C3=A9d=C3=A9ric ESCANDELL created HIVE-17013: ----------------------------------------- Summary: Delete request with a subquery based on select over a= view Key: HIVE-17013 URL: https://issues.apache.org/jira/browse/HIVE-17013 Project: Hive Issue Type: Bug Reporter: Fr=C3=A9d=C3=A9ric ESCANDELL Priority: Blocker Hi,=20 I based my DDL on this exemple https://fr.hortonworks.com/tutorial/using-hi= ve-acid-transactions-to-insert-update-and-delete-data/. In a delete request, the use of a view in a subquery throw an exception := =20 FAILED: IllegalStateException Expected 'insert into table default.mydim sel= ect ROW__ID from default.mydim sort by ROW__ID' to be in sub-query or set o= peration. {code} {code:sql} drop table if exists mydim; create table mydim (key int, name string, zip string, is_current boolean) clustered by(key) into 3 buckets stored as orc tblproperties ('transactional'=3D'true'); insert into mydim values (1, 'bob', '95136', true), (2, 'joe', '70068', true), (3, 'steve', '22150', true); drop table if exists updates_staging_table; create table updates_staging_table (key int, newzip string); insert into updates_staging_table values (1, 87102), (3, 45220); drop view if exists updates_staging_view; create view updates_staging_view (key, newzip) as select key, newzip from u= pdates_staging_table; delete from mydim where mydim.key in (select key from updates_staging_view); FAILED: IllegalStateException Expected 'insert into table default.mydim sel= ect ROW__ID from default.mydim sort by ROW__ID' to be in sub-query or set o= peration. {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)