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 custom metadata to output files with dataframe.to_parquet? #2212

Open
thehomebrewnerd opened this issue Jan 11, 2022 · 1 comment
Open

Comments

@thehomebrewnerd
Copy link

Is it possible to save custom metadata in the file when writing to a parquet file?

For example, with Dask, users can add custom metadata to the output files with this:

custom_metadata = {"custom_metadata": "my custom metadata"}
dataframe.to_parquet(path, custom_metadata=custom_metadata)

This code will add the custom metadata to the metadata of the saved parquet files, and the metadata then be read back in with pyarrow.parquet.read_metadata.

Is it possible to do something similar with Koalas? So far, I have not been able to find a way. I also attempted to manually update the metadata in the files after writing the parquet files with ks.DataFrame.to_parquet, but that is causing a checksum mismatch when trying to read the files back in to a dataframe with koalas.read_parquet.

@HyukjinKwon
Copy link
Member

Can we file a JIRA in Apache Spark JIRA (https://issues.apache.org/jira/projects/SPARK)? This repository is in maintenance mode

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