Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-3780

[R] Failed to fetch data: invalid data when collecting int16

    XMLWordPrintableJSON

Details

    Description

      Repro from sparklyr unit test:

      library(dplyr)
      library(sparklyr)
      library(arrow)
      
      sc <- spark_connect(master = "local")
      
      hive_type <- tibble::frame_data(
       ~stype, ~svalue, ~rtype, ~rvalue, ~arrow,
       "smallint", "1", "integer", "1", "integer",
      )
      
      spark_query <- hive_type %>%
       mutate(
       query = paste0("cast(", svalue, " as ", stype, ") as ", gsub("\\(|\\)", "", stype), "_col")
       ) %>%
       pull(query) %>%
       paste(collapse = ", ") %>%
       paste("SELECT", .)
      
      spark_types <- DBI::dbGetQuery(sc, spark_query) %>%
       lapply(function(e) class(e)[[1]]) %>%
       as.character()

      Actual: error: Failed to fetch data: invalid data 

      Attachments

        Activity

          People

            romainfrancois Romain Francois
            javierluraschi Javier Luraschi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h 20m
                3h 20m