You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/08/24 15:06:37 UTC
[GitHub] [iceberg] Fokko commented on pull request #5609: Python: Add additional information to the describe command
Fokko commented on PR #5609:
URL: https://github.com/apache/iceberg/pull/5609#issuecomment-1225853269
Something like this:
```
(pyiceberg-0Eb0aXNo-py3.8) ➜ python git:(fd-add-more-information) ✗ pyiceberg --uri thrift://localhost:9083 describe nyc.taxis
Table format version 1
Metadata location file:/Users/fokkodriesprong/Desktop/docker-spark-iceberg/wh/nyc.db/taxis/metadata/00003-423ac127-c400-413b-8750-2bf3f17ce013.metadata.json
Table UUID 017ddcd0-afca-41b4-9613-a032d9d4ee69
Last Updated 1661347970107
Partition spec [
1000: tpep_days: void(2)
1001: tpep_dropoff_datetime_day: unknown(3)
1002: tpep_dropff_days: unknown(2)
]
Sort order []
Current schema Schema, id=0
├── 1: VendorID: optional long
├── 2: tpep_pickup_datetime: optional timestamptz
├── 3: tpep_dropoff_datetime: optional timestamptz
├── 4: passenger_count: optional double
├── 5: trip_distance: optional double
├── 6: RatecodeID: optional double
├── 7: store_and_fwd_flag: optional string
├── 8: PULocationID: optional long
├── 9: DOLocationID: optional long
├── 10: payment_type: optional long
├── 11: fare_amount: optional double
├── 12: extra: optional double
├── 13: mta_tax: optional double
├── 14: tip_amount: optional double
├── 15: tolls_amount: optional double
├── 16: improvement_surcharge: optional double
├── 17: total_amount: optional double
├── 18: congestion_surcharge: optional double
└── 19: airport_fee: optional double
Current snapshot Operation.APPEND: id=7992925991545429343, schema_id=0
Snapshots Snapshots
└── Snapshot 7992925991545429343, schema 0: file:/Users/fokkodriesprong/Desktop/docker-spark-iceberg/wh/nyc.db/taxis/metadata/snap-7992925991545429343-1-4f8901f6-2ba5-41ae-8be2-2f9d813d69a3.avro
└── Manifest: file:/Users/fokkodriesprong/Desktop/docker-spark-iceberg/wh/nyc.db/taxis/metadata/4f8901f6-2ba5-41ae-8be2-2f9d813d69a3-m0.avro
└── Datafile: file:/Users/fokkodriesprong/Desktop/docker-spark-iceberg/wh/nyc.db/taxis/data/00003-5-e9d9a61e-7383-431a-9b8c-ccc92534c0f0-00001.parquet
Properties owner root
write.format.default parquet
```
Probably we need to do some multithreading here, but not sure if we want to do that in this PR.
--
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