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

Fix Cython typo preventing proper inheritance #15978

Merged

Conversation

vyasr
Copy link
Contributor

@vyasr vyasr commented Jun 11, 2024

Description

#15831 added new inheritance patterns to the Parquet options classes, but mirroring them perfectly in Cython proved problematic due to what appeared to be issues with Cython parsing of CRTP and inheritance. A deeper investigation revealed that the underlying issue was cython/cython#6238. This PR applies the appropriate fix.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@vyasr vyasr added bug Something isn't working non-breaking Non-breaking change labels Jun 11, 2024
@vyasr vyasr self-assigned this Jun 11, 2024
@vyasr vyasr requested a review from a team as a code owner June 11, 2024 18:27
@github-actions github-actions bot added Python Affects Python cuDF API. pylibcudf Issues specific to the pylibcudf package labels Jun 11, 2024
@vyasr
Copy link
Contributor Author

vyasr commented Jun 11, 2024

@etseidl you've gotta love this fix :) No CRTP or even templating required to produce the error.

Copy link
Contributor

@lithomas1 lithomas1 left a comment

Choose a reason for hiding this comment

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

Nice!

@etseidl
Copy link
Contributor

etseidl commented Jun 11, 2024

you've gotta love this fix :) No CRTP or even templating required to produce the error.

OMG @vyasr, thanks for seeing what my too-close-to-the-problem eyes couldn't! 😅

@vyasr
Copy link
Contributor Author

vyasr commented Jun 11, 2024

Honestly I didn't see it easily either, I had to reduce down to a MWE before I noticed the typo. Cython's choice of error was... not helpful.

@vyasr
Copy link
Contributor Author

vyasr commented Jun 11, 2024

/merge

@rapids-bot rapids-bot bot merged commit f655602 into rapidsai:branch-24.08 Jun 11, 2024
84 checks passed
@vyasr vyasr deleted the fix/parquet_reader_crtp_cython branch June 12, 2024 05:34
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change pylibcudf Issues specific to the pylibcudf package Python Affects Python cuDF API.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants