Commit 517b930
Make SetPredicate and Subclasses JSON Serializable with Pydantic (apache#2557)
apache#2524
This PR addresses issue by making the `SetPredicate` class and its
subclasses (In, NotIn) JSON serializable using Pydantic.
- Added tests to verify JSON serialization of `In` and `NotIn`
predicates.
Please let me know if my approach or fix needs any improvements . I’m
open to feedback and happy to make changes based on suggestions.
Thank you !
---------
Co-authored-by: Fokko Driesprong <fokko@apache.org>1 parent 3a9eab3 commit 517b930
File tree
2 files changed
+27
-5
lines changed- pyiceberg/expressions
- tests/expressions
2 files changed
+27
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | | - | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
| |||
571 | 577 | | |
572 | 578 | | |
573 | 579 | | |
574 | | - | |
575 | | - | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
576 | 585 | | |
577 | 586 | | |
578 | | - | |
579 | | - | |
| 587 | + | |
580 | 588 | | |
581 | 589 | | |
582 | 590 | | |
| |||
688 | 696 | | |
689 | 697 | | |
690 | 698 | | |
| 699 | + | |
| 700 | + | |
691 | 701 | | |
692 | 702 | | |
693 | 703 | | |
| |||
710 | 720 | | |
711 | 721 | | |
712 | 722 | | |
| 723 | + | |
| 724 | + | |
713 | 725 | | |
714 | 726 | | |
715 | 727 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
873 | 873 | | |
874 | 874 | | |
875 | 875 | | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
876 | 886 | | |
877 | 887 | | |
878 | 888 | | |
| |||
0 commit comments