Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-12061

Persist for Map/filter with Lambda Functions don't always read from Cache

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 1.6.0, 2.1.0
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:
    • Target Version/s:

      Description

      So far, the existing caching mechanisms do not work on dataset operations when using map/filter with lambda functions. For example,

        test("persist and then map/filter with lambda functions") {
          val f = (i: Int) => i + 1
      
          val ds = Seq(1, 2, 3).toDS()
          val mapped = ds.map(f)
          mapped.cache()
      
          val mapped2 = ds.map(f)
          assertCached(mapped2)
        }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              smilegator Xiao Li
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: