-
Notifications
You must be signed in to change notification settings - Fork 168
Closed
Description
For timetravel queries snapshot id is required.
for main reference it works.
https://iceberg.apache.org/spark-queries/#:~:text=SELECT%20*%20FROM%20prod.db.table.history
But currently cannot see the snapshot id for branches in spark-sql extensions
Nessi CLI display
ajantha@Ajanthas-MacBook-Pro nessie % nessie contents -l -r main
ICEBERG_TABLE:
db6.t2
db5.t2
ajantha@Ajanthas-MacBook-Pro nessie % nessie contents -l -r b1
ICEBERG_TABLE:
db5.t2
spark-sql display
spark-sql> use nessie.db5;
Time taken: 0.027 seconds
spark-sql> select * from `nessie.db5.t2@b1`;
12
12
12
Time taken: 0.352 seconds, Fetched 3 row(s)
spark-sql> select * from `nessie.db5.t2.history@b1`;
Error in query: Table or view not found: `nessie.db5.t2.history@b1`; line 1 pos 14;
'Project [*]
+- 'UnresolvedRelation [nessie.db5.t2.history@b1]
spark-sql> select * from nessie.db5.t2.history;
2021-10-08 14:18:43.993 8461333400033237976 NULL true
Time taken: 0.237 seconds, Fetched 1 row(s)
spark-sql> select * from nessie.db5.t2;
12
Time taken: 0.102 seconds, Fetched 1 row(s)
spark-sql>
Metadata
Metadata
Assignees
Labels
No labels