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

GH-41699: [Python][Parquet] Implement to_dict method on SortingColumn #41704

Merged
merged 2 commits into from
May 21, 2024

Conversation

tlm365
Copy link
Contributor

@tlm365 tlm365 commented May 17, 2024

Rationale for this change

Resolves #41699 .

What changes are included in this PR?

Add to_dict method and test case

Are these changes tested?

Yes

Are there any user-facing changes?

No

Copy link

⚠️ GitHub issue #41699 has been automatically assigned in GitHub to PR creator.

@mapleFU mapleFU changed the title GH-41699: [Python] Implement to_dict method on SortingColumn GH-41699: [Python][Parquet] Implement to_dict method on SortingColumn May 17, 2024
Copy link

⚠️ GitHub issue #41699 has been automatically assigned in GitHub to PR creator.

@AlenkaF
Copy link
Member

AlenkaF commented May 20, 2024

Thank you for contributing!
Can you also add a test for metadata of a ParquetFile (ParquetFile.metadata.to_dict())?

@tlm365
Copy link
Contributor Author

tlm365 commented May 20, 2024

@AlenkaF Thanks for review! I have added it.

Copy link
Member

@AlenkaF AlenkaF left a comment

Choose a reason for hiding this comment

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

Just one minor nit otherwise LGTM. Thanks!

python/pyarrow/_parquet.pyx Show resolved Hide resolved
@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels May 21, 2024
Signed-off-by: Tai Le Manh <manhtai.lmt@gmail.com>
Signed-off-by: Tai Le Manh <manhtai.lmt@gmail.com>
@AlenkaF AlenkaF merged commit b2e8c33 into apache:main May 21, 2024
13 checks passed
@AlenkaF AlenkaF removed the awaiting committer review Awaiting committer review label May 21, 2024
Copy link

After merging your PR, Conbench analyzed the 7 benchmarking runs that have been run so far on merge-commit b2e8c33.

There was 1 benchmark result indicating a performance regression:

The full Conbench report has more details. It also includes information about 10 possible false positives for unstable benchmarks that are known to sometimes produce them.

@AlenkaF
Copy link
Member

AlenkaF commented May 21, 2024

The benchmark regression seems to be momentary so we can ignore.

vibhatha pushed a commit to vibhatha/arrow that referenced this pull request May 25, 2024
…Column (apache#41704)

### Rationale for this change
Resolves apache#41699 .

### What changes are included in this PR?
Add `to_dict` method and test case

### Are these changes tested?
Yes

### Are there any user-facing changes?
No

* GitHub Issue: apache#41699

Authored-by: Tai Le Manh <manhtai.lmt@gmail.com>
Signed-off-by: AlenkaF <frim.alenka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Python] 'pyarrow._parquet.SortingColumn' object has no attribute 'to_dict'
3 participants