Skip to content

[R] Reading a parquet with a Float16 column yields incorrect value #50378

Description

@rodigu

Describe the bug, including details regarding any error messages, version, and platform.

i created a parquet file in polars where one of the columns has a Float16 type:

import polars as pl

df = pl.DataFrame(
    {"name": "john", "height": 1.78},
    schema={"name": pl.String, "height": pl.Float64},
).write_parquet("./data.parquet")

but reading it with arrow yields a different value:

library(arrow)

df <- read_parquet("./data.parquet")
print(df)

#   name height
# 1 john  16159

Component(s)

R

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions