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

Closes #3360: Reduce code duplication in Parquet read code with templates #3361

Merged
merged 3 commits into from
Jun 26, 2024

Conversation

bmcdonald3
Copy link
Contributor

@bmcdonald3 bmcdonald3 commented Jun 25, 2024

The Parquet code previously had been duplicating blocks of code with only changing the types. To reduce this duplication to improve readability and maintainability, template functions are being added in place of the duplicate code.

This reduces the readColumnByName function from 198 lines to 100 lines, so about 50% reduction in function size.

Additionally, since the code is no longer duplicated, changes won't need to be put in multiple places.

@stress-tess stress-tess self-requested a review June 26, 2024 16:12
Copy link
Member

@stress-tess stress-tess left a comment

Choose a reason for hiding this comment

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

This looks great!! I like this a lot

@stress-tess stress-tess added this pull request to the merge queue Jun 26, 2024
Merged via the queue into Bears-R-Us:master with commit 4e5d4c6 Jun 26, 2024
16 checks passed
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