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

Remove arrow::as_tibble usage in SparkR

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.0.1, 3.1.0
    • Component/s: SparkR
    • Labels:
      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

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              hyukjin.kwon Hyukjin Kwon Assign to me
              Reporter:
              hyukjin.kwon Hyukjin Kwon

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment