Commit 282ff6a
committed
[SPARK-55145][SS] Support Avro for timestamp based RocksDB state key encoders
### What changes were proposed in this pull request?
This PR proposes to support Avro for timestamp key encoders, TimestampAsPrefixKeyStateEncoder(Spec) and TimestampAsPostfixKeyStateEncoder(Spec).
This PR does not cover the scope of enabling Avro for stream-stream join operators; this would trigger more scope than expected e.g. schema evolution and warrant separate effort.
### Why are the changes needed?
To resolve TODO we left in #53911
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Existing UTs expanded from UnsafeRow only to UnsafeRow and Avro.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude 4.6 opus
Closes #54844 from HeartSaVioR/SPARK-55145.
Authored-by: Jungtaek Lim <[email protected]>
Signed-off-by: Jungtaek Lim <[email protected]>1 parent 61fb41f commit 282ff6a
File tree
3 files changed
+36
-18
lines changed- sql/core/src
- main/scala/org/apache/spark/sql/execution/streaming/state
- test/scala/org/apache/spark/sql/execution/streaming/state
3 files changed
+36
-18
lines changedLines changed: 25 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
| 627 | + | |
| 628 | + | |
627 | 629 | | |
628 | 630 | | |
629 | 631 | | |
| |||
748 | 750 | | |
749 | 751 | | |
750 | 752 | | |
751 | | - | |
752 | | - | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
753 | 762 | | |
754 | 763 | | |
755 | 764 | | |
| |||
847 | 856 | | |
848 | 857 | | |
849 | 858 | | |
850 | | - | |
851 | | - | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
852 | 863 | | |
853 | 864 | | |
854 | 865 | | |
| |||
1005 | 1016 | | |
1006 | 1017 | | |
1007 | 1018 | | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
1008 | 1024 | | |
1009 | 1025 | | |
1010 | 1026 | | |
| |||
1179 | 1195 | | |
1180 | 1196 | | |
1181 | 1197 | | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
1182 | 1202 | | |
1183 | 1203 | | |
1184 | 1204 | | |
| |||
1782 | 1802 | | |
1783 | 1803 | | |
1784 | 1804 | | |
1785 | | - | |
1786 | | - | |
1787 | | - | |
| 1805 | + | |
1788 | 1806 | | |
1789 | 1807 | | |
1790 | 1808 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
676 | | - | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
677 | 680 | | |
678 | 681 | | |
679 | 682 | | |
| |||
688 | 691 | | |
689 | 692 | | |
690 | 693 | | |
691 | | - | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
692 | 698 | | |
693 | 699 | | |
694 | 700 | | |
| |||
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 71 | + | |
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
| |||
223 | 221 | | |
224 | 222 | | |
225 | 223 | | |
226 | | - | |
227 | | - | |
228 | | - | |
| 224 | + | |
229 | 225 | | |
230 | 226 | | |
231 | 227 | | |
| |||
558 | 554 | | |
559 | 555 | | |
560 | 556 | | |
561 | | - | |
562 | | - | |
563 | | - | |
| 557 | + | |
564 | 558 | | |
565 | 559 | | |
566 | 560 | | |
| |||
0 commit comments