Return-Path: X-Original-To: apmail-crunch-dev-archive@www.apache.org Delivered-To: apmail-crunch-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 92934183A0 for ; Fri, 16 Oct 2015 18:25:05 +0000 (UTC) Received: (qmail 79469 invoked by uid 500); 16 Oct 2015 18:25:05 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 79431 invoked by uid 500); 16 Oct 2015 18:25:05 -0000 Mailing-List: contact dev-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@crunch.apache.org Delivered-To: mailing list dev@crunch.apache.org Received: (qmail 79420 invoked by uid 500); 16 Oct 2015 18:25:05 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 79417 invoked by uid 99); 16 Oct 2015 18:25:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2015 18:25:05 +0000 Date: Fri, 16 Oct 2015 18:25:05 +0000 (UTC) From: "Josh Wills (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CRUNCH-569) Don't reuse avros on SparkPipeline cache() 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/CRUNCH-569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14961144#comment-14961144 ] Josh Wills commented on CRUNCH-569: ----------------------------------- [~mkwhitacre] yeah, that was what I had in mind, though I didn't think through the amount of copy-and-paste-ish code that would be required (sorry about that.) Happy to move ahead w/this approach though. > Don't reuse avros on SparkPipeline cache() > ------------------------------------------ > > Key: CRUNCH-569 > URL: https://issues.apache.org/jira/browse/CRUNCH-569 > Project: Crunch > Issue Type: Bug > Components: Spark > Affects Versions: 0.12.0 > Reporter: Nithin Asokan > Attachments: CRUNCH-569.patch, CRUNCH-569_test.patch > > > A cached PCollection/PTable built by Avros using SparkPipeline seem to reuse avro objects. Here is a test that shows this behavior > https://gist.github.com/nasokan/531b4ff9bf827d0835ab > I would expect the output of this program to create a pair with same key, value. However, this produces Pair with different key value. I have tested this with text file input source and it works as expected. Removing cache() produces expected result. > Mailing list: http://mail-archives.apache.org/mod_mbox/crunch-user/201510.mbox/%3CCAH29n6OWD%2BSoa0A88NwaiurZcN%2B2Ow-s_zk3b%2BcKoUMNMO8uuA%40mail.gmail.com%3E -- This message was sent by Atlassian JIRA (v6.3.4#6332)