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

Minor: Extract FileScanConfig into its own module #7335

Merged
merged 2 commits into from
Aug 21, 2023

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Aug 18, 2023

Which issue does this PR close?

Part of #1754 as well as making it easier to work with datafusion code

Rationale for this change

core/src/datasource/physical_plan/mod.rs was large with several unrelated structures in it, making it hard to navigate

What changes are included in this PR?

This PR just moves some of the code into file_scan_config.rs

Are these changes tested?

Covered by existing tests

Are there any user-facing changes?

No

@alamb alamb added the development-process Related to development process of DataFusion label Aug 18, 2023
@github-actions github-actions bot added core Core DataFusion crate and removed development-process Related to development process of DataFusion labels Aug 18, 2023
@alamb alamb changed the title Alamb/file scan config Minor: Extract FileScanConfig into its own module Aug 18, 2023
@alamb alamb marked this pull request as ready for review August 18, 2023 19:28
gen_u64: ZeroBufferGenerator<u64>,
}

/// Generate a arrow [`Buffer`] that contains zero values.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are probably nicer ways to do this now with the arrow-rs APIs (like Array::from(vec![0; size])) but I didn't make the change in this PR

cc @tustvold if you have any thoughts

@alamb alamb merged commit f347760 into apache:main Aug 21, 2023
22 checks passed
@alamb alamb deleted the alamb/file_scan_config branch August 21, 2023 18:21
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.

2 participants