Uploaded image for project: 'Crunch (Retired)'
  1. Crunch (Retired)
  2. CRUNCH-569

Don't reuse avros on SparkPipeline cache()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.12.0
    • 0.14.0
    • Spark
    • None

    Description

      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

      Attachments

        1. CRUNCH-569_test.patch
          5 kB
          Micah Whitacre
        2. CRUNCH-569.patch
          14 kB
          Micah Whitacre

        Activity

          People

            mkwhitacre Micah Whitacre
            nithinasokan Nithin Asokan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: