Commit af17de8
authored
fix: Allow update_column to change required for list elements and map values (#2798)
## Summary
- Fixes #2786: `update_schema().update_column()` was not updating the
`required` property for list elements or map values
- Modified `_ApplyChanges.list()` to check `self._updates` for element's
required property
- Modified `_ApplyChanges.map()` to check `self._updates` for value's
required property
- Added 2 unit tests for list element and map value required updates
## Test plan
- [x] All 3032 unit tests pass
- [x] Lint passes
- [x] New tests cover: updating list element required, updating map
value required
Closes #2786
Co-authored-by: Somasundaram Sekar <somasundaramsekar.1986@gmail.com>1 parent bad9cda commit af17de8
2 files changed
+58
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
808 | | - | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
809 | 813 | | |
810 | 814 | | |
811 | 815 | | |
| |||
827 | 831 | | |
828 | 832 | | |
829 | 833 | | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
830 | 838 | | |
831 | 839 | | |
832 | 840 | | |
833 | 841 | | |
834 | 842 | | |
835 | | - | |
| 843 | + | |
836 | 844 | | |
837 | 845 | | |
838 | 846 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
512 | 560 | | |
513 | 561 | | |
514 | 562 | | |
| |||
0 commit comments