Commit cfe1ba5
[SPARK-12687] [SQL] Support from clause surrounded by
JIRA: https://issues.apache.org/jira/browse/SPARK-12687
Some queries such as `(select 1 as a) union (select 2 as a)` can't work. This patch fixes it.
Author: Liang-Chi Hsieh <[email protected]>
Closes #10660 from viirya/fix-union.().1 parent b9c8353 commit cfe1ba5
File tree
3 files changed
+25
-2
lines changed- sql/catalyst/src
- main/antlr3/org/apache/spark/sql/catalyst/parser
- test/scala/org/apache/spark/sql/catalyst
3 files changed
+25
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | 154 | | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2216 | 2216 | | |
2217 | 2217 | | |
2218 | 2218 | | |
| 2219 | + | |
| 2220 | + | |
2219 | 2221 | | |
2220 | 2222 | | |
2221 | 2223 | | |
| |||
2227 | 2229 | | |
2228 | 2230 | | |
2229 | 2231 | | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
2230 | 2246 | | |
2231 | 2247 | | |
2232 | 2248 | | |
| |||
2241 | 2257 | | |
2242 | 2258 | | |
2243 | 2259 | | |
2244 | | - | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
2245 | 2264 | | |
2246 | 2265 | | |
2247 | 2266 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
0 commit comments