From issues-return-181561-archive-asf-public=cust-asf.ponee.io@spark.apache.org Sat Jan 13 09:46:06 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 AD1CB18077A for ; Sat, 13 Jan 2018 09:46:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 98D7B160C2F; Sat, 13 Jan 2018 08:46:06 +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 E7E1B160C43 for ; Sat, 13 Jan 2018 09:46:05 +0100 (CET) Received: (qmail 80252 invoked by uid 500); 13 Jan 2018 08:46:05 -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 80129 invoked by uid 99); 13 Jan 2018 08:46:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Jan 2018 08:46:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 06CE21A09C0 for ; Sat, 13 Jan 2018 08:46:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.711 X-Spam-Level: X-Spam-Status: No, score=-100.711 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id SX7CBSSI2F4a for ; Sat, 13 Jan 2018 08:46: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 27C625FB87 for ; Sat, 13 Jan 2018 08:46: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 04BD3E0F55 for ; Sat, 13 Jan 2018 08:46:01 +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 2AFFD21303 for ; Sat, 13 Jan 2018 08:46:00 +0000 (UTC) Date: Sat, 13 Jan 2018 08:46:00 +0000 (UTC) From: "Apache Spark (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (SPARK-23060) RDD's apply function 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-23060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Apache Spark reassigned SPARK-23060: ------------------------------------ Assignee: (was: Apache Spark) > RDD's apply function > -------------------- > > Key: SPARK-23060 > URL: https://issues.apache.org/jira/browse/SPARK-23060 > Project: Spark > Issue Type: New Feature > Components: PySpark > Affects Versions: 2.2.1 > Reporter: Gianmarco Donetti > Priority: Minor > Labels: features, newbie > Original Estimate: 1h > Remaining Estimate: 1h > > New function for RDDs -> apply > >>> def foo(rdd): > ... return rdd.map(lambda x: x.split('|')).filter(lambda x: x[0] == 'ERROR') > >>> rdd = sc.parallelize(['ERROR|10', 'ERROR|12', 'WARNING|10', 'INFO|2']) > >>> result = rdd.apply(foo) > >>> result.collect() > [('ERROR', '10'), ('ERROR', '12')] -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org