platypii commented on code in PR #123: URL: https://github.com/apache/parquet-site/pull/123#discussion_r2455620300
########## content/en/docs/File Format/implementationstatus.md: ########## @@ -43,30 +49,43 @@ Implementations: ### Logical types -| Data type | arrow | parquet-java | arrow-go | arrow-rs | cudf | hyparquet | duckdb | -| ----------------------------------------- | ----- | ------------- | -------- | -------- | ----- | --------- | ------ | -| STRING | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| ENUM | ❌ | ✅ | ✅ | ✅ (1) | ❌ | ✅ | ✅ | -| UUID | ❌ | ✅ | ✅ | ✅ (1) | ❌ | ✅ | ✅ | -| 8, 16, 32, 64 bit signed and unsigned INT | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| DECIMAL (INT32) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| DECIMAL (INT64) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| DECIMAL (BYTE_ARRAY) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | (R) | -| DECIMAL (FIXED_LEN_BYTE_ARRAY) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| DATE | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| TIME (INT32) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| TIME (INT64) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| TIMESTAMP (INT64) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| INTERVAL | ✅ | ✅ (1) | ✅ | ✅ | ❌ | ✅ | ✅ | -| JSON | ✅ | ✅ (1) | ✅ | ✅ (1) | ❌ | ✅ | ✅ | -| BSON | ❌ | ✅ (1) | ✅ | ✅ (1) | ❌ | ❌ | ❌ | -| LIST | ✅ | ✅ | ✅ | ✅ | ✅ | (R) | ✅ | -| MAP | ✅ | ✅ | ✅ | ✅ | ✅ | (R) | ✅ | -| UNKNOWN (always null) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| FLOAT16 | ✅ | ✅ (1) | ✅ | ✅ | ✅ | ✅ | ✅ | +Logical types are defined by the [`union LogicalType` in parquet.thrift] and described in [LogicalTypes.md] + +[`union LogicalType` in parquet.thrift]: https://github.com/apache/parquet-format/blob/master/src/main/thrift/parquet.thrift#L471 +[LogicalTypes.md]: https://github.com/apache/parquet-format/blob/master/LogicalTypes.md + +| Data type | arrow | parquet-java | arrow-go | arrow-rs | cudf | hyparquet | duckdb | +|-----------------------------------------|------| ------- | ------- | ------- | ---- | -------- |--------| +| STRING | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | +| ENUM | ❌ | ✅ | ✅ | ✅ (1) | ❌ | ✅ | ✅ | +| UUID | ❌ | ✅ | ✅ | ✅ (1) | ❌ | ✅ | ✅ | +| 8, 16, 32, 64 bit signed and unsigned INT | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | +| DECIMAL (INT32) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | +| DECIMAL (INT64) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | +| DECIMAL (BYTE_ARRAY) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | (R) | +| DECIMAL (FIXED_LEN_BYTE_ARRAY) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | +| FLOAT16 | ✅ | ✅ (1) | ✅ | ✅ | ✅ | ✅ | ✅ | +| DATE | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | +| TIME (INT32) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | +| TIME (INT64) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | +| TIMESTAMP (INT64) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | +| INTERVAL | ✅ | ✅ (1) | ✅ | ✅ | ❌ | ✅ | ✅ | +| JSON | ✅ | ✅ (1) | ✅ | ✅ (1) | ❌ | ✅ | ✅ | +| BSON | ❌ | ✅ (1) | ✅ | ✅ (1) | ❌ | ❌ | ❌ | +| [VARIANT] | | | | | | | | +| [GEOMETRY] | | | | | | | | +| [GEOGRAPHY] | | | | | | | | Review Comment: Does duckdb support geometery / geography? When I load geospatial files from the parquet-testing repo, duckdb does not decode them? (latest duckdb 1.4.1) ``` D from 'geospatial.parquet'; ┌─────────┬──────────────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ group │ wkt │ geometry │ │ varchar │ varchar │ blob │ ├─────────┼──────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ all │ POINT (30 10) │ \x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00>@\x00\x00\x00\x00\x00\x00$@ │ │ all │ LINESTRING (30 10,… │ \x01\x02\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00>@\x00\x00\x00\x00\x00\x00$@\x00\x00\x00\x00\x00\x00$@… │ │ all │ POLYGON ((30 10, 4… │ \x01\x03\x00\x00\x00\x01\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00>@\x00\x00\x00\x00\x00\x00$@\x00\x00\x… │ │ ``` -- 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]
