Return-Path: X-Original-To: apmail-spark-issues-archive@minotaur.apache.org Delivered-To: apmail-spark-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EFBC417C70 for ; Fri, 30 Jan 2015 01:34:33 +0000 (UTC) Received: (qmail 81166 invoked by uid 500); 30 Jan 2015 01:34:34 -0000 Delivered-To: apmail-spark-issues-archive@spark.apache.org Received: (qmail 81135 invoked by uid 500); 30 Jan 2015 01:34:34 -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 81125 invoked by uid 99); 30 Jan 2015 01:34:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jan 2015 01:34:34 +0000 Date: Fri, 30 Jan 2015 01:34:34 +0000 (UTC) From: "Apache Spark (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-5454) [SQL] Self join with ArrayType columns problems MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-5454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14298048#comment-14298048 ] Apache Spark commented on SPARK-5454: ------------------------------------- User 'chenghao-intel' has created a pull request for this issue: https://github.com/apache/spark/pull/4284 > [SQL] Self join with ArrayType columns problems > ----------------------------------------------- > > Key: SPARK-5454 > URL: https://issues.apache.org/jira/browse/SPARK-5454 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 1.2.0 > Reporter: Pierre Borckmans > > Weird behaviour when performing self join on a table with some ArrayType field. (potential bug ?) > I have set up a minimal non working example here: > https://gist.github.com/pierre-borckmans/4853cd6d0b2f2388bf4f > In a nutshell, if the ArrayType column used for the pivot is created manually in the StructType definition, everything works as expected. > However, if the ArrayType pivot column is obtained by a sql query (be it by using a "array" wrapper, or using a collect_list operator for instance), then results are completely off. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org