Skip to content

Conversation

@adriangb
Copy link
Contributor

@adriangb adriangb commented Dec 11, 2025

Superseeds #15865
Part of #16800

The idea here was to remove usage of SchemaAdapter and at the same time actually populate the partition column statistics.

@github-actions github-actions bot added core Core DataFusion crate catalog Related to the catalog crate datasource Changes to the datasource crate labels Dec 11, 2025
Comment on lines -669 to -720
let schema_adapter = self.create_schema_adapter();
let (schema_mapper, _) = schema_adapter.map_schema(self.file_schema.as_ref())?;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was mapping from file schema -> table schema by filling in unknown stats for partition columns. It did not do any per-file adaptation, it assumes all files already have the same schema.

@adriangb adriangb requested a review from xudong963 December 11, 2025 14:50
@adriangb adriangb marked this pull request as ready for review December 11, 2025 14:51
@adriangb adriangb force-pushed the partition-statistics branch from e1d1c91 to 26f07ab Compare December 11, 2025 15:48
Copy link
Contributor

@mbutrovich mbutrovich left a comment

Choose a reason for hiding this comment

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

That's a nice net-negative line count! Thanks @adriangb!

@adriangb adriangb force-pushed the partition-statistics branch from 3ad1f1f to e15dbe0 Compare December 11, 2025 17:22
@adriangb
Copy link
Contributor Author

Thanks @mbutrovich ! I'll leave this open for another day or so for public comment.

@adriangb
Copy link
Contributor Author

@xudong963 in particular I'm interested in your input since you authored #15865

@adriangb adriangb force-pushed the partition-statistics branch from c457754 to 2b569a9 Compare December 14, 2025 16:58
@adriangb adriangb added this pull request to the merge queue Dec 15, 2025
Merged via the queue into apache:main with commit 899a762 Dec 15, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

catalog Related to the catalog crate core Core DataFusion crate datasource Changes to the datasource crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants