You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spark returns the latest table definition even after executing rollback_to_snapshot procedure.
Steps to reproduce
> CREATE TABLE test USING iceberg AS SELECT 1 c1;
> ALTER TABLE test ADD COLUMN c2 int;
> INSERT INTO test VALUES (1, 1);
> SELECT * FROM iceberg_test.default.test.snapshots;
2022-08-19 07:32:29.499 2770581293596517273 ...
2022-08-19 07:32:50.006 6893045681966948046 ...
> DESC iceberg_test.default.test.snapshot_id_2770581293596517273;
c1 int
# Partitioning
Not partitioned
> CALL iceberg_test.system.rollback_to_snapshot('default.test', 2770581293596517273);
> DESC iceberg_test.default.test;
c1 int
c2 int
The result is same even after I executed REFRESH TABLE iceberg_test.default.test after rollback_to_snapshot.