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

How to adjust the serialization format of datetime with UTC timezone for hive partitions #41003

Open
ion-elgreco opened this issue Apr 4, 2024 · 0 comments
Labels
Component: Python Type: usage Issue is a user question

Comments

@ion-elgreco
Copy link

ion-elgreco commented Apr 4, 2024

Describe the usage question you have. Please include as many useful details as possible.

In Delta-RS we are using pyarrow as engine to write with. It seems though that datetime partitions that have a UTC timezone are being serialized with a Z at that the end. So we get this 2022-01-01 03:00:00.000000Z.

We however need to write them without the Z at the end because that's how the Delta Protocol requires it to be.

Is there a way to adjust this partition serialization format in PyArrow dataset writer?

Component(s)

Python

Relevant issue in Delta-RS

delta-io/delta-rs#2384

@ion-elgreco ion-elgreco added the Type: usage Issue is a user question label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Python Type: usage Issue is a user question
Projects
None yet
Development

No branches or pull requests

1 participant