ebyhr opened a new issue, #5591:
URL: https://github.com/apache/iceberg/issues/5591
### Apache Iceberg version
0.14.0 (latest release)
### Query engine
Spark
### Please describe the bug 🐞
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`.
Relates to
https://apache-iceberg.slack.com/archives/C025PH0G1D4/p1660895079836159
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]