Commit 3855f64
authored
Core: Improve error for null/unknown schema types in table creation (apache#2843)
What changed
- Add a client-side validation error when a PyArrow `null` type is used
with format version < 3, including the field path and a hint to use a
concrete type or format-version 3.
- Add a unit test to verify the clear error message when converting a
PyArrow schema with a null field.
Why
- Prevents misleading REST errors like “Cannot parse type string…
unknown” and points directly to the offending field.
Testing
- make lint
- uv run pytest tests/catalog/test_base.py -k rejects_null_type -v
- make test (timed out at ~42%)
Closes apache#2539
---------
Co-authored-by: Soham <010Soham@users.noreply.github.com>1 parent 85c9cb6 commit 3855f64
2 files changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1435 | 1435 | | |
1436 | 1436 | | |
1437 | 1437 | | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
1438 | 1445 | | |
1439 | 1446 | | |
1440 | 1447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
213 | 223 | | |
214 | 224 | | |
215 | 225 | | |
| |||
0 commit comments