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

Fix SparkR SQL Test to drop test table

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.3, 2.1.1, 2.2.0
    • Component/s: SparkR, Tests
    • Labels:
      None

      Description

      Currently, SparkR tests, `R/run-tests.sh` succeeds only once because `test_sparkSQL.R` does not clean up the test table `people`.

      As a result, the test data is accumulated at every run and the test cases fail.

      The following is the failure result for the second run.

      Failed -------------------------------------------------------------------------
      1. Failure: create DataFrame from RDD (@test_sparkSQL.R#204) -------------------
      collect(sql("SELECT age from people WHERE name = 'Bob'"))$age not equal to c(16).
      Lengths differ: 2 vs 1
      
      
      2. Failure: create DataFrame from RDD (@test_sparkSQL.R#206) -------------------
      collect(sql("SELECT height from people WHERE name ='Bob'"))$height not equal to c(176.5).
      Lengths differ: 2 vs 1
      

        Attachments

          Activity

            People

            • Assignee:
              dongjoon Dongjoon Hyun
              Reporter:
              dongjoon Dongjoon Hyun
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: