You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Romain François (Jira)" <ji...@apache.org> on 2019/09/16 06:59:00 UTC

[jira] [Closed] (ARROW-3780) [R] Failed to fetch data: invalid data when collecting int16

     [ https://issues.apache.org/jira/browse/ARROW-3780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain François closed ARROW-3780.
----------------------------------

> [R] Failed to fetch data: invalid data when collecting int16
> ------------------------------------------------------------
>
>                 Key: ARROW-3780
>                 URL: https://issues.apache.org/jira/browse/ARROW-3780
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>            Reporter: Javier Luraschi
>            Assignee: Romain François
>            Priority: Major
>              Labels: pull-request-available, spark
>             Fix For: 0.14.0
>
>          Time Spent: 3h 20m
>  Remaining Estimate: 0h
>
> Repro from sparklyr unit test:
> {code:java}
> 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(){code}
> Actual: error: Failed to fetch data: invalid data 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)