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

Add LazyFrame version of to_parquet/3 #496

Merged
merged 2 commits into from
Feb 6, 2023

Conversation

philss
Copy link
Contributor

@philss philss commented Feb 6, 2023

This is going to save a lazy frame to a parquet file using a stream.
This should keep the memory usage low for bigger files.

This makes the representation of parquet compression much simplier,
with an enum. We validate that at the Elixir side.
This is going to save a lazy frame to a parquet file using a stream.
This should keep the memory usage low for bigger files.

@impl true
def to_parquet(_df, _filename, _compression) do
raise "to_parquet/3 with groups is not supported yet for lazy frames"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do groups matter on these operations? I think the group is just ignored, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's going to be ignored. But I chose to raise to avoid confusion when the person is trying to write a grouped DF to a file.

@philss philss merged commit 0d48126 into elixir-explorer:main Feb 6, 2023
@philss philss deleted the ps-add-to-parquet-lazy branch February 6, 2023 20:11
liamdiprose pushed a commit to liamdiprose/explorer that referenced this pull request Feb 16, 2023
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

Successfully merging this pull request may close these issues.

2 participants