You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "David Cortes (Jira)" <ji...@apache.org> on 2020/06/26 10:24:00 UTC
[jira] [Closed] (ARROW-9218) [R] Numeric columns turn to string
when imported in R
[ https://issues.apache.org/jira/browse/ARROW-9218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Cortes closed ARROW-9218.
-------------------------------
Resolution: Not A Problem
> [R] Numeric columns turn to string when imported in R
> -----------------------------------------------------
>
> Key: ARROW-9218
> URL: https://issues.apache.org/jira/browse/ARROW-9218
> Project: Apache Arrow
> Issue Type: Bug
> Components: R
> Affects Versions: 0.17.1
> Reporter: David Cortes
> Priority: Major
>
> If I create a snappy-compressed parquet file from a DataFrame in spark or pandas, and then import this same file into R using:
> {code:java}
> arrow::read_parquet(the_file, as_data_frame=TRUE)
> {code}
> or
> {code:java}
> arrow::read_parquet(the_file, as_data_frame=FALSE){code}
> Then the columns that were numeric/float before will load as strings.
> Loading the same file in Python through
> {code:java}
> pd.read_parquet(the_file)
> {code}
> Will correctly interpret numeric columns as numeric.
>
> Integer columns seem to be read as integers however.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)