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

Remove arrow::as_tibble usage in SparkR

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 3.1.0
    • 3.0.1, 3.1.0
    • SparkR
    • None

    Description

      We increased the minimal version of Arrow R version to 1.0.0 at SPARK-32452, and Arrow R 0.14 dropped as_tibble. We can remove the usage in SparkR:

      pkg/R/DataFrame.R:                  # Arrow drops `as_tibble` since 0.14.0, see ARROW-5190.
      pkg/R/DataFrame.R:                  if (exists("as_tibble", envir = asNamespace("arrow"))) {
      pkg/R/DataFrame.R:                    as.data.frame(arrow::as_tibble(arrowTable), stringsAsFactors = stringsAsFactors)
      pkg/R/deserialize.R:    # Arrow drops `as_tibble` since 0.14.0, see ARROW-5190.
      pkg/R/deserialize.R:    useAsTibble <- exists("as_tibble", envir = asNamespace("arrow"))
      pkg/R/deserialize.R:      as_tibble <- get("as_tibble", envir = asNamespace("arrow"))
      pkg/R/deserialize.R:      lapply(batches, function(batch) as.data.frame(as_tibble(batch)))
      

      Attachments

        Issue Links

          Activity

            People

              gurwls223 Hyukjin Kwon
              gurwls223 Hyukjin Kwon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: