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 6080C200C08 for ; Thu, 26 Jan 2017 17:00:39 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5F371160B33; Thu, 26 Jan 2017 16:00:39 +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 1AC8F160B40 for ; Thu, 26 Jan 2017 17:00:37 +0100 (CET) Received: (qmail 18410 invoked by uid 500); 26 Jan 2017 16:00:37 -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 18401 invoked by uid 99); 26 Jan 2017 16:00:37 -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, 26 Jan 2017 16:00:37 +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 E785818C8CD for ; Thu, 26 Jan 2017 16:00:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.198 X-Spam-Level: X-Spam-Status: No, score=-1.198 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ZUQR1JG1GTvA for ; Thu, 26 Jan 2017 16:00:32 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 39C0B60D9B for ; Thu, 26 Jan 2017 16:00:30 +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 46134E044B for ; Thu, 26 Jan 2017 16:00:29 +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 57AB625298 for ; Thu, 26 Jan 2017 16:00:28 +0000 (UTC) Date: Thu, 26 Jan 2017 16:00:28 +0000 (UTC) From: "Herman van Hovell (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-15505) Explode nested Array in DF Column into Multiple Columns MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 26 Jan 2017 16:00:39 -0000 [ https://issues.apache.org/jira/browse/SPARK-15505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15839908#comment-15839908 ] Herman van Hovell commented on SPARK-15505: ------------------------------------------- Hmmmm.... This is will be quite bad in terms of performance. To me the usefulness also seems a bit limited, you cannot really reason about the structure of the data frame after doing this. Why would this be useful? > Explode nested Array in DF Column into Multiple Columns > -------------------------------------------------------- > > Key: SPARK-15505 > URL: https://issues.apache.org/jira/browse/SPARK-15505 > Project: Spark > Issue Type: Improvement > Components: Spark Core > Affects Versions: 1.6.1 > Reporter: Jorge Machado > Priority: Minor > > At the moment if we have a DF like this : > {noformat} > +------+---------+ > | Col1 | Col2 | > +------+---------+ > | 1 |[2, 3, 4]| > | 1 |[2, 3, 4]| > +------+---------+ > {noformat} > There is no way to directly transform it into : > {noformat} > +------+------+------+------+ > | Col1 | Col2 | Col3 | Col4 | > +------+------+------+------+ > | 1 | 2 | 3 | 4 | > | 1 | 2 | 3 | 4 | > +------+------+------+------+ > {noformat} > I think this should be easy to implement > More infos here : http://stackoverflow.com/questions/37391241/explode-spark-columns/37392793#37392793 -- 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