You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Neal Richardson (Jira)" <ji...@apache.org> on 2020/06/24 15:08:00 UTC
[jira] [Commented] (ARROW-9218) Numeric columns turn to string when
imported in R
[ https://issues.apache.org/jira/browse/ARROW-9218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17143911#comment-17143911 ]
Neal Richardson commented on ARROW-9218:
----------------------------------------
Could you please share code and/or a sample file that reproduces this behavior?
> 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)