Commit 3f3d024
[SPARK-49205][SQL] KeyGroupedPartitioning should inherit HashPartitioningLike
### What changes were proposed in this pull request?
This pr makes `KeyGroupedPartitioning` inherit `HashPartitioningLike`, so that the `BroadcastHashJoin#expandOutputPartitioning` and `PartitioningPreservingUnaryExecNode` can work with it.
### Why are the changes needed?
To make `KeyGroupedPartitioning` support alias aware framework.
### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
add test
### Was this patch authored or co-authored using generative AI tooling?
no
Closes #47734 from ulysses-you/SPARK-49205-partitioning.
Authored-by: ulysses-you <[email protected]>
Signed-off-by: Kent Yao <[email protected]>1 parent d82c695 commit 3f3d024
File tree
2 files changed
+56
-3
lines changed- sql
- catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/physical
- core/src/test/scala/org/apache/spark/sql/connector
2 files changed
+56
-3
lines changedLines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
424 | 427 | | |
425 | 428 | | |
426 | 429 | | |
| |||
766 | 769 | | |
767 | 770 | | |
768 | 771 | | |
769 | | - | |
770 | | - | |
| 772 | + | |
| 773 | + | |
771 | 774 | | |
772 | 775 | | |
773 | 776 | | |
| |||
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
583 | 584 | | |
584 | 585 | | |
585 | 586 | | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
586 | 636 | | |
587 | 637 | | |
588 | 638 | | |
| |||
0 commit comments