Commit a368bd9
authored
Use Pydantic's
* 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)model_copy for model modification (#182)1 parent 34b18e4 commit a368bd9
2 files changed
+78
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | 420 | | |
425 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
426 | 427 | | |
427 | 428 | | |
428 | 429 | | |
| |||
441 | 442 | | |
442 | 443 | | |
443 | 444 | | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | 445 | | |
448 | | - | |
| 446 | + | |
449 | 447 | | |
450 | 448 | | |
451 | 449 | | |
| |||
469 | 467 | | |
470 | 468 | | |
471 | 469 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | 470 | | |
477 | | - | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | | - | |
| 496 | + | |
497 | 497 | | |
498 | | - | |
499 | | - | |
| 498 | + | |
500 | 499 | | |
501 | | - | |
502 | | - | |
| 500 | + | |
503 | 501 | | |
504 | 502 | | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
509 | 508 | | |
510 | 509 | | |
511 | | - | |
512 | | - | |
513 | | - | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
514 | 513 | | |
515 | | - | |
| 514 | + | |
516 | 515 | | |
517 | | - | |
| 516 | + | |
518 | 517 | | |
519 | 518 | | |
520 | 519 | | |
| |||
533 | 532 | | |
534 | 533 | | |
535 | 534 | | |
536 | | - | |
| 535 | + | |
537 | 536 | | |
538 | 537 | | |
539 | 538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
640 | 641 | | |
641 | 642 | | |
642 | 643 | | |
| 644 | + | |
| 645 | + | |
643 | 646 | | |
644 | 647 | | |
645 | 648 | | |
| 649 | + | |
646 | 650 | | |
647 | 651 | | |
648 | 652 | | |
| |||
669 | 673 | | |
670 | 674 | | |
671 | 675 | | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
672 | 721 | | |
673 | 722 | | |
674 | 723 | | |
0 commit comments