-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Pydantic's
model_copy
for model modification (#182)
* Implement table metadata updater first draft * fix updater error and add tests * implement apply_metadata_update which is simpler * remove old implementation * re-organize method place * fix nit * fix test * add another test * clear TODO * add a combined test * Fix merge conflict * remove table requirement validation for PR simplification * make context private and solve elif issue * remove private field access * push snapshot ref validation to its builder using pydantic * fix comment * remove unnecessary code for AddSchemaUpdate update * replace if with elif * switch to model_copy() * enhance the set current schema update implementation and some other changes * make apply_table_update private * fix lint after merge * add validation * add test for isolation of illegal updates * fix nit * remove unnecessary flag * change to model_copy(deep=True)
- Loading branch information
Showing
2 changed files
with
78 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters