Skip to content

Is it possible for s3.to_parquet to use partition_cols as defined in Glue Catalog? #1644

Answered by kukushking
mattfysh asked this question in Q&A
Discussion options

You must be logged in to vote

The difficulty here is to distinguish between the case where you would like to create/update the Glue table definition with the new partitioning scheme because atm wr.s3.to_parquet keeps table definition in sync with the data, not vice versa.

In your case I would suggest to use wr.catalog.get_table() to retrieve partition keys from the Glue table instead

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mattfysh
Comment options

Answer selected by mattfysh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants