-
Notifications
You must be signed in to change notification settings - Fork 139
[WIP] Stats all #1627
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
base: main
Are you sure you want to change the base?
[WIP] Stats all #1627
Conversation
73fa938 to
e3b6498
Compare
| }) | ||
| .collect(); | ||
| let data = StructArray::try_new(output_fields.into(), output_cols, None)?; | ||
| let data = StructArray::try_new(output_fields.into(), output_cols, source_null_buffer)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch! Should we split this out into a separate PR? This is a pretty serious bug
|
I'm still learning, but I would also expect that we extend the |
|
|
||
| StructTypeBuilder::from_schema(mandatory_add_file_schema()) | ||
| .add_field(StructField::nullable( | ||
| "stats", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we re-use this name? I think this might cause confusion since it will also contain the blob
| stats_schema: Option<&StructType>, | ||
| ) -> DeltaResult<( | ||
| impl Iterator<Item = DeltaResult<ActionsBatch>> + Send, | ||
| Option<bool>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to wrap the bool in an option?
| checkpoint_read_schema: SchemaRef, | ||
| meta_predicate: Option<PredicateRef>, | ||
| ) -> DeltaResult<impl Iterator<Item = DeltaResult<ActionsBatch>> + Send> { | ||
| stats_schema: Option<&StructType>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be a SchemaRef as well? In the case of wide tables, it can be pretty big (a multiple of the columns in the table itself). And should we add it the docstring?
What changes are proposed in this pull request?
How was this change tested?