Commit 81a0375
authored
[mosaic] Support ARRAY and MAP type validation (#8178)
- Remove `UnsupportedOperationException` for ARRAY and MAP types in
`MosaicRowTypeVisitor`, allowing these types to pass schema validation
- Recursively validate child types (element type for ARRAY, key/value
types for MAP)
- Once paimon-mosaic upstream releases 0.2.0 (which includes ARRAY/MAP
support in the native library), we only need to bump the mosaic
dependency version1 parent 773f942 commit 81a0375
2 files changed
Lines changed: 14 additions & 7 deletions
File tree
- paimon-mosaic/src
- main/java/org/apache/paimon/format/mosaic
- test/java/org/apache/paimon/format/mosaic
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
| 212 | + | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
| |||
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
89 | 96 | | |
90 | 97 | | |
91 | | - | |
92 | | - | |
93 | | - | |
| 98 | + | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
| |||
0 commit comments