You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "huan233usc (via GitHub)" <gi...@apache.org> on 2026/07/07 00:16:25 UTC
[PR] Core: Read and write geometry and geography values in Avro [iceberg]
huan233usc opened a new pull request, #17119:
URL: https://github.com/apache/iceberg/pull/17119
## Summary
`TypeToSchema` mapped every Iceberg primitive to an Avro schema except `geometry` and `geography`,
so converting a schema with a geo column threw `UnsupportedOperationException: Unsupported type ID:
GEOMETRY` before any value could be read or written through the Avro object model. This wires up the
value path.
Per the Avro type mapping in the spec, `geometry` and `geography` are stored as an Avro `bytes` field
carrying WKB — the same representation as `binary`:
| Iceberg type | Avro type |
| --- | --- |
| `binary` | `bytes` |
| `geometry` | `bytes` (WKB) |
| `geography` | `bytes` (WKB) |
So `TypeToSchema.primitive()` now maps both geo types to the existing `BINARY_SCHEMA`. The value
read/write paths dispatch on the Avro physical type, so once the schema is `bytes` the existing
`byteBuffers` reader/writer handle geo unchanged in both the generic and internal object models (geo
values are WKB `ByteBuffer`s, exactly like `binary`) — no value-path code changes are needed.
This is a follow-up split out of #16982 (which added the Parquet WKB value path and deliberately left
the Avro object model as a follow-up).
### Note on the reverse direction
`SchemaToType` intentionally still maps Avro `bytes → binary`. Plain Avro `bytes` carries no marker to
distinguish geometry/geography from binary, and Iceberg resolves the real column type from the
expected/table schema, never by reverse-inferring from the file's Avro schema — the same way `binary`
and other `bytes`-backed types already behave.
## Test plan
- Enable the shared `DataTest` geospatial coverage (`supportsGeospatial()`) for the Avro object models:
`TestGenericAvro`, `TestInternalAvro`, and the generic-data `TestGenericData`. This round-trips
geometry and geography across multiple CRS and edge algorithms with randomly generated WKB values.
- Add the `GEOMETRY`/`GEOGRAPHY` → `ByteBuffer` handling that the generic Avro path needs in
`RandomAvroData` and `AvroTestHelpers`, mirroring the existing `RandomInternalData` /
`InternalTestHelpers` handling.
- `./gradlew :iceberg-core:test --tests org.apache.iceberg.avro.TestGenericAvro --tests org.apache.iceberg.avro.TestInternalAvro`
- `./gradlew :iceberg-data:test --tests org.apache.iceberg.data.avro.TestGenericData`
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Read and write geometry and geography values in Avro [iceberg]
Posted by "wombatu-kun (via GitHub)" <gi...@apache.org>.
wombatu-kun commented on code in PR #17119:
URL: https://github.com/apache/iceberg/pull/17119#discussion_r3533118941
##########
core/src/test/java/org/apache/iceberg/avro/TestGenericAvro.java:
##########
@@ -44,6 +44,11 @@ protected boolean supportsVariant() {
return true;
}
+ @Override
+ protected boolean supportsGeospatial() {
Review Comment:
`TestAvroEncoderUtil` extends `DataTestBase` and round-trips generic records through this same `TypeToSchema` + `RandomAvroData` path via `AvroEncoderUtil.encode/decode`, and on `main` it mirrors this test's type flags exactly (`supportsUnknown`, `supportsTimestampNanos`, `supportsVariant`). Enabling `supportsGeospatial()` there as well covers geo through the encoder entry point for free and keeps the two generic-model Avro tests in parity. szehon-ho raised the same coverage-parity point on the sibling Parquet PR #16982.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Read and write geometry and geography values in Avro [iceberg]
Posted by "huan233usc (via GitHub)" <gi...@apache.org>.
huan233usc commented on code in PR #17119:
URL: https://github.com/apache/iceberg/pull/17119#discussion_r3538419998
##########
core/src/test/java/org/apache/iceberg/avro/TestGenericAvro.java:
##########
@@ -44,6 +44,11 @@ protected boolean supportsVariant() {
return true;
}
+ @Override
+ protected boolean supportsGeospatial() {
Review Comment:
Done — enabled supportsGeospatial() on TestAvroEncoderUtil in 67619a712, so geo now round-trips through the AvroEncoderUtil.encode/decode entry point too, keeping the two generic-model Avro tests in parity (good call on the #16982 coverage-parity precedent).
I also added explicit WKB round-trip tests while here:
- TestAvroDataWriter.testGeospatialWkbRoundTrip — geometry/geography through the Avro DataWriter → PlannedDataReader path, including nulls.
- TestParquet.testGeospatialWkbRoundTrip — through ParquetAvroWriter → ParquetAvroValueReaders,
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Read and write geometry and geography values in Avro [iceberg]
Posted by "huan233usc (via GitHub)" <gi...@apache.org>.
huan233usc commented on code in PR #17119:
URL: https://github.com/apache/iceberg/pull/17119#discussion_r3582656374
##########
core/src/main/java/org/apache/iceberg/avro/TypeToSchema.java:
##########
@@ -264,6 +264,11 @@ public Schema primitive(Type.PrimitiveType primitive) {
case BINARY:
primitiveSchema = BINARY_SCHEMA;
break;
+ case GEOMETRY:
+ case GEOGRAPHY:
Review Comment:
Done in 64993fe2c — `GEOMETRY`/`GEOGRAPHY` now share the `BINARY` case block and the restating comment is dropped. Thanks!
##########
core/src/test/java/org/apache/iceberg/avro/TestAvroDataWriter.java:
##########
@@ -110,4 +112,56 @@ public void testDataWriter() throws IOException {
assertThat(writtenRecords).as("Written records should match").isEqualTo(records);
}
+
+ @Test
+ public void testGeospatialWkbRoundTrip() throws IOException {
+ Schema schema =
+ new Schema(
+ Types.NestedField.required(1, "id", Types.LongType.get()),
+ Types.NestedField.optional(2, "geom", Types.GeometryType.crs84()),
+ Types.NestedField.optional(3, "geog", Types.GeographyType.crs84()));
+
+ GenericRecord record = GenericRecord.create(schema);
+ List<Record> geoRecords =
+ ImmutableList.of(
+ record.copy(
+ ImmutableMap.of("id", 1L, "geom", wkbPoint(30, 10), "geog", wkbPoint(-5, 40))),
+ // geog is left null
+ record.copy(ImmutableMap.of("id", 2L, "geom", wkbPoint(0, 0))),
+ // both geo columns are left null
+ record.copy(ImmutableMap.of("id", 3L)));
+
+ OutputFile file = Files.localOutput(temp.toFile());
+ DataWriter<Record> dataWriter =
+ Avro.writeData(file)
+ .schema(schema)
+ .createWriterFunc(org.apache.iceberg.data.avro.DataWriter::create)
+ .overwrite()
+ .withSpec(PartitionSpec.unpartitioned())
+ .build();
+ try (dataWriter) {
+ for (Record geoRecord : geoRecords) {
+ dataWriter.write(geoRecord);
+ }
+ }
+
+ assertThat(dataWriter.toDataFile().recordCount()).isEqualTo(geoRecords.size());
+
+ List<Record> writtenRecords;
+ try (AvroIterable<Record> reader =
+ Avro.read(file.toInputFile())
+ .project(schema)
+ .createResolvingReader(PlannedDataReader::create)
+ .build()) {
+ writtenRecords = Lists.newArrayList(reader);
+ }
+
+ assertThat(writtenRecords)
+ .as("Geometry and geography WKB should round-trip through Avro")
+ .isEqualTo(geoRecords);
+ }
+
+ private static ByteBuffer wkbPoint(double xCoord, double yCoord) {
Review Comment:
Leaving the local `wkbPoint` helper as-is: it delegates to `RandomUtil.wkbPoint` and matches the merged `TestParquetDataWriter.wkbPoint` precedent (the same one-place-for-WKB consistency wombatu-kun pointed to above), and it keeps the three call sites in the record list readable. Happy to inline if you feel strongly.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Read and write geometry and geography values in Avro [iceberg]
Posted by "szehon-ho (via GitHub)" <gi...@apache.org>.
szehon-ho commented on code in PR #17119:
URL: https://github.com/apache/iceberg/pull/17119#discussion_r3581784894
##########
core/src/test/java/org/apache/iceberg/avro/TestAvroDataWriter.java:
##########
@@ -110,4 +112,56 @@ public void testDataWriter() throws IOException {
assertThat(writtenRecords).as("Written records should match").isEqualTo(records);
}
+
+ @Test
+ public void testGeospatialWkbRoundTrip() throws IOException {
+ Schema schema =
+ new Schema(
+ Types.NestedField.required(1, "id", Types.LongType.get()),
+ Types.NestedField.optional(2, "geom", Types.GeometryType.crs84()),
+ Types.NestedField.optional(3, "geog", Types.GeographyType.crs84()));
+
+ GenericRecord record = GenericRecord.create(schema);
+ List<Record> geoRecords =
+ ImmutableList.of(
+ record.copy(
+ ImmutableMap.of("id", 1L, "geom", wkbPoint(30, 10), "geog", wkbPoint(-5, 40))),
+ // geog is left null
+ record.copy(ImmutableMap.of("id", 2L, "geom", wkbPoint(0, 0))),
+ // both geo columns are left null
+ record.copy(ImmutableMap.of("id", 3L)));
+
+ OutputFile file = Files.localOutput(temp.toFile());
+ DataWriter<Record> dataWriter =
+ Avro.writeData(file)
+ .schema(schema)
+ .createWriterFunc(org.apache.iceberg.data.avro.DataWriter::create)
+ .overwrite()
+ .withSpec(PartitionSpec.unpartitioned())
+ .build();
+ try (dataWriter) {
+ for (Record geoRecord : geoRecords) {
+ dataWriter.write(geoRecord);
+ }
+ }
+
+ assertThat(dataWriter.toDataFile().recordCount()).isEqualTo(geoRecords.size());
+
+ List<Record> writtenRecords;
+ try (AvroIterable<Record> reader =
+ Avro.read(file.toInputFile())
+ .project(schema)
+ .createResolvingReader(PlannedDataReader::create)
+ .build()) {
+ writtenRecords = Lists.newArrayList(reader);
+ }
+
+ assertThat(writtenRecords)
+ .as("Geometry and geography WKB should round-trip through Avro")
+ .isEqualTo(geoRecords);
+ }
+
+ private static ByteBuffer wkbPoint(double xCoord, double yCoord) {
Review Comment:
🟢 **Nit** — The local `wkbPoint` wrapper is fine (matches `TestParquetDataWriter`), but you could inline `ByteBuffer.wrap(RandomUtil.wkbPoint(...))` the way `TestParquet.testGeospatialWkbRoundTrip` does and drop the helper. Optional either way.
##########
core/src/main/java/org/apache/iceberg/avro/TypeToSchema.java:
##########
@@ -264,6 +264,11 @@ public Schema primitive(Type.PrimitiveType primitive) {
case BINARY:
primitiveSchema = BINARY_SCHEMA;
break;
+ case GEOMETRY:
+ case GEOGRAPHY:
Review Comment:
🟢 **Nit** — `GEOMETRY`/`GEOGRAPHY` could share the `BINARY` case block instead of a separate block with a comment:
```java
case BINARY:
case GEOMETRY:
case GEOGRAPHY:
primitiveSchema = BINARY_SCHEMA;
break;
```
The spec mapping is already documented in the PR description; this matches how `RandomInternalData` groups these types and avoids a comment that mostly restates the code.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Read and write geometry and geography values in Avro [iceberg]
Posted by "wombatu-kun (via GitHub)" <gi...@apache.org>.
wombatu-kun commented on code in PR #17119:
URL: https://github.com/apache/iceberg/pull/17119#discussion_r3565422074
##########
parquet/src/test/java/org/apache/iceberg/parquet/TestParquet.java:
##########
@@ -330,6 +330,39 @@ public void testGeospatialFooterMetricsSkipParquetBounds() throws IOException {
}
}
+ @Test
+ public void testGeospatialWkbRoundTrip() throws IOException {
Review Comment:
The test plan in the PR body still describes the previous commit: it lists only the `supportsGeospatial()` flips plus the RandomAvroData/AvroTestHelpers cases, and does not mention TestAvroEncoderUtil, TestAvroDataWriter.testGeospatialWkbRoundTrip, or this test - so a PR titled `Core:` silently adds parquet-module coverage. Worth saying in the description (it becomes the squash commit message) that this closes the parquet-avro object model gap (`ParquetAvroWriter` / `ParquetAvroValueReaders`), which was unreachable for geo because `AvroSchemaUtil.convert` threw on geo types - the follow-up szehon-ho asked about on #16982.
##########
core/src/test/java/org/apache/iceberg/avro/TestAvroDataWriter.java:
##########
@@ -110,4 +112,64 @@ public void testDataWriter() throws IOException {
assertThat(writtenRecords).as("Written records should match").isEqualTo(records);
}
+
+ @Test
+ public void testGeospatialWkbRoundTrip() throws IOException {
+ Schema schema =
+ new Schema(
+ Types.NestedField.required(1, "id", Types.LongType.get()),
+ Types.NestedField.optional(2, "geom", Types.GeometryType.crs84()),
+ Types.NestedField.optional(3, "geog", Types.GeographyType.crs84()));
+
+ GenericRecord record = GenericRecord.create(schema);
+ List<Record> geoRecords =
+ ImmutableList.of(
+ record.copy(
+ ImmutableMap.of("id", 1L, "geom", wkbPoint(30, 10), "geog", wkbPoint(-5, 40))),
+ // geog is left null
+ record.copy(ImmutableMap.of("id", 2L, "geom", wkbPoint(0, 0))),
+ // both geo columns are left null
+ record.copy(ImmutableMap.of("id", 3L)));
+
+ OutputFile file = Files.localOutput(temp.toFile());
+ DataWriter<Record> dataWriter =
+ Avro.writeData(file)
+ .schema(schema)
+ .createWriterFunc(org.apache.iceberg.data.avro.DataWriter::create)
+ .overwrite()
+ .withSpec(PartitionSpec.unpartitioned())
+ .build();
+ try (dataWriter) {
+ for (Record geoRecord : geoRecords) {
+ dataWriter.write(geoRecord);
+ }
+ }
+
+ assertThat(dataWriter.toDataFile().recordCount()).isEqualTo(geoRecords.size());
+
+ List<Record> writtenRecords;
+ try (AvroIterable<Record> reader =
+ Avro.read(file.toInputFile())
+ .project(schema)
+ .createResolvingReader(PlannedDataReader::create)
+ .build()) {
+ writtenRecords = Lists.newArrayList(reader);
+ }
+
+ assertThat(writtenRecords)
+ .as("Geometry and geography WKB should round-trip through Avro")
+ .isEqualTo(geoRecords);
+ }
+
+ private static ByteBuffer wkbPoint(double xCoord, double yCoord) {
Review Comment:
`RandomUtil.wkbPoint(double, double)` in api/src/test/java/org/apache/iceberg/util/RandomUtil.java already encodes a little-endian WKB point, and it is on core's test classpath (`RandomAvroData` imports it). szehon-ho raised this exact duplication on the sibling Parquet PR #16982, and the merged `TestParquetDataWriter.wkbPoint` delegates: `return ByteBuffer.wrap(RandomUtil.wkbPoint(xCoord, yCoord));`. Doing the same here keeps WKB encoding in one place and drops the new `java.nio.ByteOrder` import.
##########
parquet/src/test/java/org/apache/iceberg/parquet/TestParquet.java:
##########
@@ -330,6 +330,39 @@ public void testGeospatialFooterMetricsSkipParquetBounds() throws IOException {
}
}
+ @Test
+ public void testGeospatialWkbRoundTrip() throws IOException {
+ Schema schema =
+ new Schema(
+ optional(1, "geom", Types.GeometryType.crs84()),
+ optional(2, "geog", Types.GeographyType.crs84()));
+
+ ByteBuffer geomWkb = ByteBuffer.wrap(new byte[] {0x01, 0x02, 0x03});
Review Comment:
These bytes are not WKB. That is harmless in `testGeospatialFooterMetricsSkipParquetBounds`, which writes them through a `Types.BinaryType` schema, but this test writes them through the geometry/geography schema, so `TypeToMessageType` annotates the column with `LogicalTypeAnnotation.geometryType(crs)`. Parquet then attaches a real `GeospatialStatistics.Builder` to that column (`ColumnValueCollector`), and its `update(Binary)` runs JTS `WKBReader.read` and catches `ParseException` with a "Failed to parse WKB geometry, omit it from stats" warning. So the test passes while writing a file whose geometry values are unparseable and whose geospatial statistics are empty. `RandomUtil.wkbPoint(...)` produces real WKB here too and makes the test name accurate.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Read and write geometry and geography values in Avro [iceberg]
Posted by "huan233usc (via GitHub)" <gi...@apache.org>.
huan233usc commented on PR #17119:
URL: https://github.com/apache/iceberg/pull/17119#issuecomment-4952522136
Thanks for the careful review @wombatu-kun! Addressed in bcbef59c4:
- `testGeospatialWkbRoundTrip` now uses real WKB via `RandomUtil.wkbPoint(...)` so the geospatial statistics builder actually parses the values (the previous arbitrary bytes were silently dropped from stats).
- `TestAvroDataWriter.wkbPoint` delegates to `RandomUtil.wkbPoint` and drops the `ByteOrder` import, matching the merged `TestParquetDataWriter`.
- Updated the PR description/test plan to cover `TestAvroEncoderUtil` and both round-trip tests, and to note this closes the parquet-avro object model gap (the #16982 follow-up).
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Read and write geometry and geography values in Avro [iceberg]
Posted by "huan233usc (via GitHub)" <gi...@apache.org>.
huan233usc commented on code in PR #17119:
URL: https://github.com/apache/iceberg/pull/17119#discussion_r3566993507
##########
core/src/test/java/org/apache/iceberg/avro/TestAvroDataWriter.java:
##########
@@ -110,4 +112,64 @@ public void testDataWriter() throws IOException {
assertThat(writtenRecords).as("Written records should match").isEqualTo(records);
}
+
+ @Test
+ public void testGeospatialWkbRoundTrip() throws IOException {
+ Schema schema =
+ new Schema(
+ Types.NestedField.required(1, "id", Types.LongType.get()),
+ Types.NestedField.optional(2, "geom", Types.GeometryType.crs84()),
+ Types.NestedField.optional(3, "geog", Types.GeographyType.crs84()));
+
+ GenericRecord record = GenericRecord.create(schema);
+ List<Record> geoRecords =
+ ImmutableList.of(
+ record.copy(
+ ImmutableMap.of("id", 1L, "geom", wkbPoint(30, 10), "geog", wkbPoint(-5, 40))),
+ // geog is left null
+ record.copy(ImmutableMap.of("id", 2L, "geom", wkbPoint(0, 0))),
+ // both geo columns are left null
+ record.copy(ImmutableMap.of("id", 3L)));
+
+ OutputFile file = Files.localOutput(temp.toFile());
+ DataWriter<Record> dataWriter =
+ Avro.writeData(file)
+ .schema(schema)
+ .createWriterFunc(org.apache.iceberg.data.avro.DataWriter::create)
+ .overwrite()
+ .withSpec(PartitionSpec.unpartitioned())
+ .build();
+ try (dataWriter) {
+ for (Record geoRecord : geoRecords) {
+ dataWriter.write(geoRecord);
+ }
+ }
+
+ assertThat(dataWriter.toDataFile().recordCount()).isEqualTo(geoRecords.size());
+
+ List<Record> writtenRecords;
+ try (AvroIterable<Record> reader =
+ Avro.read(file.toInputFile())
+ .project(schema)
+ .createResolvingReader(PlannedDataReader::create)
+ .build()) {
+ writtenRecords = Lists.newArrayList(reader);
+ }
+
+ assertThat(writtenRecords)
+ .as("Geometry and geography WKB should round-trip through Avro")
+ .isEqualTo(geoRecords);
+ }
+
+ private static ByteBuffer wkbPoint(double xCoord, double yCoord) {
Review Comment:
Done in bcbef59c4 — `TestAvroDataWriter.wkbPoint` now delegates to `RandomUtil.wkbPoint(xCoord, yCoord)` and the `java.nio.ByteOrder` import is dropped, matching the merged `TestParquetDataWriter.wkbPoint`. Thanks for the pointer to the #16982 precedent.
##########
parquet/src/test/java/org/apache/iceberg/parquet/TestParquet.java:
##########
@@ -330,6 +330,39 @@ public void testGeospatialFooterMetricsSkipParquetBounds() throws IOException {
}
}
+ @Test
+ public void testGeospatialWkbRoundTrip() throws IOException {
+ Schema schema =
+ new Schema(
+ optional(1, "geom", Types.GeometryType.crs84()),
+ optional(2, "geog", Types.GeographyType.crs84()));
+
+ ByteBuffer geomWkb = ByteBuffer.wrap(new byte[] {0x01, 0x02, 0x03});
Review Comment:
Great catch — fixed in bcbef59c4. `testGeospatialWkbRoundTrip` now uses `RandomUtil.wkbPoint(30, 10)` / `wkbPoint(-5, 40)`, so the values are real WKB that the geospatial statistics builder parses successfully instead of silently omitting. The bytes in `testGeospatialFooterMetricsSkipParquetBounds` are left as-is since that test writes through a `BinaryType` schema (no WKB parsing), as you noted.
##########
parquet/src/test/java/org/apache/iceberg/parquet/TestParquet.java:
##########
@@ -330,6 +330,39 @@ public void testGeospatialFooterMetricsSkipParquetBounds() throws IOException {
}
}
+ @Test
+ public void testGeospatialWkbRoundTrip() throws IOException {
Review Comment:
Updated the PR description: the test plan now lists `TestAvroEncoderUtil`, both `testGeospatialWkbRoundTrip` tests, and a Summary paragraph noting this closes the parquet-avro object model gap (`ParquetAvroWriter`/`ParquetAvroValueReaders`, unreachable for geo because `AvroSchemaUtil.convert` routed into the `TypeToSchema` that threw) — the #16982 follow-up. It'll carry into the squash message.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Read and write geometry and geography values in Avro [iceberg]
Posted by "szehon-ho (via GitHub)" <gi...@apache.org>.
szehon-ho commented on PR #17119:
URL: https://github.com/apache/iceberg/pull/17119#issuecomment-4998191852
Merged, thanks @huan233usc , and also @huan233usc @wombatu-kun for additional review !
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Read and write geometry and geography values in Avro [iceberg]
Posted by "szehon-ho (via GitHub)" <gi...@apache.org>.
szehon-ho merged PR #17119:
URL: https://github.com/apache/iceberg/pull/17119
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org