Commit 924ee73
Make UnaryPredicate JSON Serializable (apache#2598)
apache#2522
This PR makes the `UnaryPredicate` class and its subclasses (`IsNul`l,
`NotNul`l, `IsNaN`, `NotNaN`) JSON serializable using Pydantic
- Adds unit tests to verify JSON serialization for IsNull and NotNull
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.
Thankyou !
---------
Co-authored-by: Fokko Driesprong <fokko@apache.org>1 parent 9ce7619 commit 924ee73
File tree
2 files changed
+34
-3
lines changed- pyiceberg/expressions
- tests/expressions
2 files changed
+34
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
458 | 471 | | |
459 | 472 | | |
460 | 473 | | |
| |||
513 | 526 | | |
514 | 527 | | |
515 | 528 | | |
| 529 | + | |
| 530 | + | |
516 | 531 | | |
517 | 532 | | |
518 | 533 | | |
| |||
523 | 538 | | |
524 | 539 | | |
525 | 540 | | |
| 541 | + | |
| 542 | + | |
526 | 543 | | |
527 | 544 | | |
528 | 545 | | |
| |||
565 | 582 | | |
566 | 583 | | |
567 | 584 | | |
| 585 | + | |
| 586 | + | |
568 | 587 | | |
569 | 588 | | |
570 | 589 | | |
| |||
575 | 594 | | |
576 | 595 | | |
577 | 596 | | |
| 597 | + | |
| 598 | + | |
578 | 599 | | |
579 | 600 | | |
580 | 601 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
694 | 694 | | |
695 | 695 | | |
696 | 696 | | |
697 | | - | |
| 697 | + | |
698 | 698 | | |
699 | 699 | | |
700 | 700 | | |
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
714 | | - | |
| 714 | + | |
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
| |||
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
794 | 804 | | |
795 | 805 | | |
796 | 806 | | |
| |||
0 commit comments