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

Fix warnings and a failure in SparkR test cases with testthat version 1.0.1

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.1
    • 2.0.0
    • SparkR
    • None

    Description

      After upgrading "testthat" package to version 1.0.1, new warnings and a new failure were found in SparkR test cases:

      ```
      Warnings -----------------------------------------------------------------------
      1. multiple packages don't produce a warning (@test_client.R#35) - `not()` is deprecated.

      2. sparkJars sparkPackages as comma-separated strings (@test_context.R#141) - `not()` is deprecated.

      3. spark.survreg (@test_mllib.R#453) - `not()` is deprecated.

      4. date functions on a DataFrame (@test_sparkSQL.R#1199) - Deprecated: please use `expect_gt()` instead

      5. date functions on a DataFrame (@test_sparkSQL.R#1200) - Deprecated: please use `expect_gt()` instead

      6. date functions on a DataFrame (@test_sparkSQL.R#1201) - Deprecated: please use `expect_gt()` instead

      7. Method as.data.frame as a synonym for collect() (@test_sparkSQL.R#1899) - `not()` is deprecated.

      Failure: showDF() (@test_sparkSQL.R#1513) -----------------------------------
      `s` produced no output
      ```

      Changes in releases of testthat can be found at https://github.com/hadley/testthat/blob/master/NEWS.md

      Attachments

        Activity

          People

            sunrui Sun Rui
            sunrui Sun Rui
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: