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
Our hub has run into an issue with the column type checking. It seems submitting a parquet file with date-times in a date column will raise an error in check_tbl_col_types.R:
[col_types]: EXEC ERROR: Error in purrr::map_chr(tbl, ~if (inherits(.x,
"numeric")) [ : ℹ In index: 1. ℹ With name: forecast_date. Caused by error: !
Result must be length 1, not 2.
This can be resolved of course by making sure the relevant columns are of type date rather than date-time (but this is not super obvious from this error to our submitters, at least).
The error seems to arise as class(x) for a date-time vector will return a vector of two values, i.e.:
> class(Sys.time())
[1] "POSIXct" "POSIXt"
I was going to submit a PR for a simple fix to just return the first element from class(.x) - but worried this could cause issues later?
Sorry I don't have a reprex for this one.
The text was updated successfully, but these errors were encountered:
Our hub has run into an issue with the column type checking. It seems submitting a parquet file with date-times in a date column will raise an error in check_tbl_col_types.R:
This can be resolved of course by making sure the relevant columns are of type date rather than date-time (but this is not super obvious from this error to our submitters, at least).
The error seems to arise as
class(x)
for a date-time vector will return a vector of two values, i.e.:I was going to submit a PR for a simple fix to just return the first element from
class(.x)
- but worried this could cause issues later?Sorry I don't have a reprex for this one.
The text was updated successfully, but these errors were encountered: