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/24 14:28:00 UTC

[jira] [Created] (ARROW-9218) Numeric columns turn to string when imported in R

David Cortes created ARROW-9218:
-----------------------------------

             Summary: 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


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)