Commit 21c562f
[SPARK-9241][SQL] Supporting multiple DISTINCT columns - follow-up (3)
This PR is a 2nd follow-up for [SPARK-9241](https://issues.apache.org/jira/browse/SPARK-9241). It contains the following improvements:
* Fix for a potential bug in distinct child expression and attribute alignment.
* Improved handling of duplicate distinct child expressions.
* Added test for distinct UDAF with multiple children.
cc yhuai
Author: Herman van Hovell <[email protected]>
Closes #9566 from hvanhovell/SPARK-9241-followup-2.1 parent 3121e78 commit 21c562f
File tree
2 files changed
+42
-8
lines changed- sql
- catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis
- hive/src/test/scala/org/apache/spark/sql/hive/execution
2 files changed
+42
-8
lines changedLines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
173 | | - | |
| 174 | + | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| |||
Lines changed: 37 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
69 | 99 | | |
70 | 100 | | |
71 | 101 | | |
| |||
110 | 140 | | |
111 | 141 | | |
112 | 142 | | |
| 143 | + | |
113 | 144 | | |
114 | 145 | | |
115 | 146 | | |
| |||
545 | 576 | | |
546 | 577 | | |
547 | 578 | | |
| 579 | + | |
548 | 580 | | |
549 | 581 | | |
550 | 582 | | |
551 | 583 | | |
| 584 | + | |
552 | 585 | | |
553 | 586 | | |
554 | 587 | | |
555 | 588 | | |
556 | 589 | | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
561 | 594 | | |
562 | 595 | | |
563 | 596 | | |
| |||
0 commit comments