Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write_parquet failure when Posixct column class has some "NA" #95

Open
alvarocombo opened this issue Sep 25, 2024 · 2 comments
Open

write_parquet failure when Posixct column class has some "NA" #95

alvarocombo opened this issue Sep 25, 2024 · 2 comments

Comments

@alvarocombo
Copy link

Hi,

When tried to write a data.frame that has Posixct columns where some values are NA, write_parquet throws the following error:

> write_parquet(df, "my.parquet")
Error in write_parquet(df, "my.parquet") : 
  Cannot write unknown column type

The minimal example:

df <- data.frame(
  a = c(1,2),
  t = c(Sys.time(), NA)
)

write_parquet(df, "my.parquet")

The only solution seems to convert them to numeric... which causes a cascade of problems.

Thank you for your attention.

Regards

@gaborcsardi
Copy link
Member

This works fine for me with the dev version of nanoparquet.

@alvarocombo
Copy link
Author

Thanks for your prompt response.

I'm using latest stable (0.3.1), on Windows. Any schedule for next stable version (that hopefully solve this issue)?

Regards

AC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants