You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug, including details regarding any error messages, version, and platform.
I am using R arrow package to retieve partitioned parquet data. Data is partitioned by symbol variable. I try to retrieve some data using dplyr syntax:
Error in `compute.arrow_dplyr_query()`:
! Invalid: Float value 1.51515 was truncated converting to int32
Run `rlang::last_trace()` to see where the error occurred.
If I use some other symbol (haven't tried all), above code works. But for symbol app it doesn't. I figured out the problem is in above variable that has type int32.
I am using latest version of arrow (1.17).
Component(s)
R
The text was updated successfully, but these errors were encountered:
Hi @MislavSag, are you able to share your Parquet file or (preferably) a minimal sample of it that we could use to reproduce this?
When I tried to make a minimal reproduction, I find I don't get the error you do when I set safe = FALSE like you do. See:
library(arrow)
library(dplyr)
# w/ safe = FALSE, works fine (truncates)
arrow_table(data.frame(x=rnorm(10, 0, 10))) |>
mutate(x_trunc= cast(x, int32(), safe=FALSE)) |>
collect()
# only w/ safe = TRUE does this error (see error below)
arrow_table(data.frame(x=rnorm(10, 0, 10))) |>
mutate(x_trunc= cast(x, int32(), safe=TRUE)) |>
collect()
# Error in `compute.arrow_dplyr_query()`:# ! Invalid: Float value -2.13185 was truncated converting to int32# Run `rlang::last_trace()` to see where the error occurred.
I wonder if there's something going on where the safe argument isn't being respect or if it's possible there's a typo in your code snippet?
Describe the bug, including details regarding any error messages, version, and platform.
I am using R arrow package to retieve partitioned parquet data. Data is partitioned by symbol variable. I try to retrieve some data using dplyr syntax:
The error I get:
If I use some other symbol (haven't tried all), above code works. But for symbol app it doesn't. I figured out the problem is in above variable that has type int32.
I am using latest version of arrow (1.17).
Component(s)
R
The text was updated successfully, but these errors were encountered: