csringhofer opened a new pull request, #17112:
URL: https://github.com/apache/iceberg/pull/17112
Add GEOMETRY and GEOGRAPHY cases to HiveSchemaUtil.convertToTypeString,
mapping them to "binary".
"binary" was chosen instead of "unknown" because geometry/geography are
WKB-encoded byte arrays - older readers not familiar with Iceberg/Parquet
GEOMETRY can still read the created Parquet files by reading the column as
BINARY and converting from WKB to their representation (st_GeomFromWKB() in
Hive).
Motivation:
Bumped into this while integrating Iceberg geometry support into Apache
Impala, which uses the Hive catalog for tests. Creating a table with a geometry
column would throw UnsupportedOperationException from the default
branch of the switch. By patching HiveSchemaUtil in Iceberg I as able to
create tables with GEOMETRY columns.
--
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]