From issues-return-182912-archive-asf-public=cust-asf.ponee.io@spark.apache.org Thu Jan 25 13:32:05 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 809C9180651 for ; Thu, 25 Jan 2018 13:32:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6FEA2160C3D; Thu, 25 Jan 2018 12:32:05 +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 B620B160C13 for ; Thu, 25 Jan 2018 13:32:04 +0100 (CET) Received: (qmail 44585 invoked by uid 500); 25 Jan 2018 12:32:03 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 44576 invoked by uid 99); 25 Jan 2018 12:32: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; Thu, 25 Jan 2018 12:32: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 7B29DC1C9B for ; Thu, 25 Jan 2018 12:32:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -108.711 X-Spam-Level: X-Spam-Status: No, score=-108.711 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, 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 4NOs06CnKqzN for ; Thu, 25 Jan 2018 12:32: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 1ECC55FBFC for ; Thu, 25 Jan 2018 12:32: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 589D2E0F41 for ; Thu, 25 Jan 2018 12:32: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 0DE7421301 for ; Thu, 25 Jan 2018 12:32:00 +0000 (UTC) Date: Thu, 25 Jan 2018 12:32:00 +0000 (UTC) From: "Hyukjin Kwon (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-23201) Cannot create view when duplicate columns exist in subquery MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-23201?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D163= 39159#comment-16339159 ]=20 Hyukjin Kwon commented on SPARK-23201: -------------------------------------- We usually resolve it as {{Cannot Reprodice}} if it can't be reproduced in = the master. We should really find out the appropriate fix/Jira and backport= this if applicable.=C2=A0[~joha0123]=C2=A0if we are unable to reproduce th= is in a higher version as said above, I would rather leave this resolved. > Cannot create view when duplicate columns exist in subquery > ----------------------------------------------------------- > > Key: SPARK-23201 > URL: https://issues.apache.org/jira/browse/SPARK-23201 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 1.6.0, 1.6.3 > Reporter: Johannes Mayer > Priority: Critical > > I have two tables A(colA, col2, col3), B(colB, col3, col5) > If i join them in a subquery on A.colA =3D B.colB i can select the non du= plicate columns, but i cannot create a view (col3 is duplicate, but not sel= ected) > =C2=A0 > {code:java} > create view testview as select > tmp.colA,=C2=A0tmp.col2, tmp.colB, tmp.col5 > from ( > select * from A left join B > on (A.colA =3D B.colB) > ) > {code} > =C2=A0 > =C2=A0 > This works: > =C2=A0 > {code:java} > select > tmp.colA,=C2=A0tmp.col2, tmp.colB, tmp.col5 > from ( > select * from A left join B > on (A.colA =3D B.colB) > ) > {code} > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org