apache / iceberg

Apache Iceberg
https://iceberg.apache.org/
Apache License 2.0
5.85k stars 2.06k forks source link

How to obtain the latest write time? #10566

Closed madeirak closed 5 days ago

madeirak commented 6 days ago

Query engine

spark sql

Question

How to obtain the latest write time

  1. spark DDL on iceberg also generates snapshots, am I right?
  2. If Q1 is right, how can I get the time of latest write. SELECT * FROM prod.db.table.snapshots; Maybe the column operation as below? How many types of operation in total? image
madeirak commented 6 days ago

https://iceberg.apache.org/docs/latest/spark-queries/#snapshots