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

Fix ineffective test in CachedTableSuite

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.3.1
    • 2.3.2, 2.4.0
    • SQL
    • None

    Description

      test("withColumn doesn't invalidate cached dataframe") in CachedTableSuite doesn't not work because:

      The UDF is executed and test count incremented when "df.cache()" is called and the subsequent "df.collect()" has no effect on the test result. 

      link:

      https://github.com/apache/spark/blob/master/sql/core/src/test/scala/org/apache/spark/sql/CachedTableSuite.scala#L86

      Attachments

        Activity

          People

            icexelloss Li Jin
            icexelloss Li Jin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: