-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add hooks to SchemaAdapter
to add custom column generators
#15261
base: main
Are you sure you want to change the base?
Conversation
let err = adapter.map_schema(&file_schema).unwrap_err().to_string(); | ||
assert_eq!(err, "Error during planning: Column a is missing from the file schema, cannot be generated, and is non-nullable"); |
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.
It's nice that this fails earlier 😄
I've moved the complex bit over to #15263. I'll let that settle first then resume work here. |
Noting that in #15263 (comment) I realized that it might be good to have a system to report stats for columns that will be generated before they are generated (is it all nulls? is it a constant?) to be used with stats pruning. |
Now that #15263 is merged I'll come back here and:
|
896eb8b
to
74b884f
Compare
de02a9a
to
0bdebc8
Compare
Marking as ready for review. The main TODO is an API for transmitting statistics information for generated columns before they get generated, but that can even be a followup PR. |
Closes #15220
A lot of the work of this PR is meant to resolve #15220 (comment). I think I'll move that into a standalone PR.