feat(python): add writer_properties to all operations#1980
feat(python): add writer_properties to all operations#1980ion-elgreco merged 7 commits intodelta-io:mainfrom
Conversation
| ] = None, | ||
| predicate: Optional[str] = None, | ||
| writer_properties: Optional[Dict[str, int]] = None, | ||
| writer_properties: Optional[WriterProperties] = None, |
There was a problem hiding this comment.
This, and similar changes in other places will break the compatibility, is that intended?
There was a problem hiding this comment.
Yeah it will be a breaking change here, so we need to mark that in the release
roeap
left a comment
There was a problem hiding this comment.
Mor generally speaking, I have been contemplating if we should pull in pydantic as a dependency, to build a more powerful (and convenient) system to configure all of this.
Given the amount ot storage options, lock table, and a growing config of delta-rs itself it mays be helpful.
Then again, by now not so many users seem to complain about config etc ...
|
@roeap I am not sure if it's worth the effort, setting the storage options is quite clear since many other libraries share the same setup. |
Description
I've changed the API to consolidate that how we use writer properties. You now need to instantiate a WriterProperties class and then pass it to the writer, merge, delete, update, optimize operations.
A potential idea I had is to allow users to set the write properties in the DeltaTable class once, so the properties can be grabbed from the tableclass so you don't have to provide them to each method.