Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Oct 26, 2023

Which issue does this PR close?

Follow on to #7745

Rationale for this change

#7745 adds a new parquet feature flag. However, it did by adding a lot of #[cfg] over the codebase.

I believe it is important to keep the codebase as easy to work with as possible, to keep the barrier to new contributors down and encourage additional contributions. Having many #[cfg] in various parts of the code means that even people working on things not related to parquet have to worry about those cfgs.

What changes are included in this PR?

  1. Removes most of the #cfg and instead isolates the parquet specific code to their own modules, with stub implementations when the feature is not enabled.

Are these changes tested?

Existing tests

Are there any user-facing changes?

No

@github-actions github-actions bot added the core Core DataFusion crate label Oct 26, 2023
@alamb alamb changed the title Minor: reduce some #cfg(feature = "parquet") Reduce more #cfg(feature = "parquet") Oct 26, 2023
@alamb alamb changed the title Reduce more #cfg(feature = "parquet") Minor: Reduce more #cfg(feature = "parquet") in tets Oct 26, 2023
@alamb alamb changed the title Minor: Reduce more #cfg(feature = "parquet") in tets Minor: Reduce more #cfg(feature = "parquet") in tests Oct 26, 2023
@alamb alamb marked this pull request as ready for review October 26, 2023 13:56
Copy link
Member

@Weijun-H Weijun-H left a comment

Choose a reason for hiding this comment

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

It failed when running cargo test --package datafusion-common

@alamb alamb requested a review from andygrove November 8, 2023 19:10
@alamb
Copy link
Contributor Author

alamb commented Nov 8, 2023

@andygrove I wonder if you have time to review this PR?

@alamb
Copy link
Contributor Author

alamb commented Nov 28, 2023

This PR is slowly bitrotting, Given no one seems to care, I'll close this one

@alamb alamb closed this Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants