Commit 6fc14b6
authored
Allow reading of improperly constructed empty lists in Parquet metadata (#8827)
# Which issue does this PR close?
- Closes #8826.
# Rationale for this change
As reported in the issue, some writers will use an element type of 0 for
an empty list. This is not thrift compact protocol spec compliant, but
many readers (including this crate prior to 57.0.0) tolerate this.
# What changes are included in this PR?
Adds a special case to `read_list_begin` for a 0 length list with a type
of 0.
# Are these changes tested?
Yes
# Are there any user-facing changes?
No, internal change only1 parent af2c460 commit 6fc14b6
1 file changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
305 | 313 | | |
306 | 314 | | |
307 | 315 | | |
| |||
1089 | 1097 | | |
1090 | 1098 | | |
1091 | 1099 | | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
1092 | 1109 | | |
0 commit comments