Commit 2d202fb
committed
feat(isthmus)!: remove invalid SetOp to Calcite relation mappings
The Substrait -> Calcite converter mapped MINUS_MULTISET to Calcite
Minus(all=true) and INTERSECTION_PRIMARY to Intersect(all=false). These
mappings are incorrect: the spec behaviour of these set operations does
not match the Calcite relations they were mapped to. They were retained
temporarily to let users migrate off of them.
Neither MINUS_MULTISET nor INTERSECTION_PRIMARY has an equivalent Calcite
relation, so converting a plan containing either to Calcite now throws
UnsupportedOperationException.
BREAKING CHANGE: Converting a Substrait plan that uses the MINUS_MULTISET
or INTERSECTION_PRIMARY set operations to Calcite now throws
UnsupportedOperationException instead of producing an incorrect Calcite
relation. The supported set-difference operations are MINUS_PRIMARY
(Minus all=false) and MINUS_PRIMARY_ALL (Minus all=true); the supported
intersection operations are INTERSECTION_MULTISET (Intersect all=false)
and INTERSECTION_MULTISET_ALL (Intersect all=true).
Closes #3031 parent a107b72 commit 2d202fb
3 files changed
Lines changed: 22 additions & 7 deletions
File tree
- isthmus/src
- main/java/io/substrait/isthmus
- test/java/io/substrait/isthmus
- utils
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | 288 | | |
293 | 289 | | |
294 | 290 | | |
| |||
301 | 297 | | |
302 | 298 | | |
303 | 299 | | |
304 | | - | |
305 | 300 | | |
306 | | - | |
307 | 301 | | |
308 | 302 | | |
309 | 303 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
245 | 265 | | |
246 | 266 | | |
247 | 267 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
0 commit comments