stevenzwu commented on code in PR #18394:
URL: https://github.com/apache/iceberg/pull/18394#discussion_r4262104412
##########
core/src/main/java/org/apache/iceberg/V4ManifestReader.java:
##########
@@ -248,6 +254,30 @@ private CloseableIterable<TrackedFile> open() {
return reader;
}
+ private void registerGeospatialFieldStatsBounds(
+ InternalData.ReadBuilder readBuilder, Types.NestedField fieldStats) {
+ Types.NestedField tableField =
tableSchema.findField(StatsUtil.toFieldId(fieldStats.fieldId()));
Review Comment:
The stats schema says the bound is a struct. The table column type says that
struct is a GeospatialBound, which is why the reader checks GEOMETRY or
GEOGRAPHY before registering that class. A later non-geo struct bound would be
decoded as GeospatialBound if we keyed only off whether the bound is a struct.
--
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]