jdockerty opened a new issue, #1897:
URL: https://github.com/apache/iceberg-rust/issues/1897
When a `DataFile` is built through the derived builder (`DataFileBuilder`)
and no `split_offsets` are given, this is still serialised as `[]` instead of
`null`.
E.g. converting the Avro file to JSON it looks something like this:
```json
...
"split_offsets": {
"array": []
},
```
I suspect this is because the value within the `DataFile` is a `Vec<i64>`
instead of an `Option<Vec<i64>>`. I _think_ this `Option` is the correct
approach because the spec also states that `split_offsets` are optional and it
looks like they're [optional in the Java
implementation](https://github.com/apache/iceberg/blob/16e84356dae1975fa04d8c3ecce30a90df18ca9f/api/src/main/java/org/apache/iceberg/DataFile.java#L89-L91)
too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]