harnsit opened a new issue, #5141:
URL: https://github.com/apache/iceberg/issues/5141
We are using system.rollback_to_snapshot to rollback a table. It works fine
as long as the parent_id exists.
After doing first insert into the table, there is no way to rollback to the
original state of the table.
```
spark-sql> select * from hive_prod.default.test_iceberg.history;
2022-06-27 17:05:26.985 8757768064614539325 NULL true
```
The first history snapshot has NULL as parent id.
```
spark-sql> call
hive_prod.system.rollback_to_snapshot('hive_prod.default.test_iceberg', NULL);
Error in query:
no viable alternative at input 'NULL)'(line 1, pos 81)
```
Is there a way or do I have to delete all rows from the table?
--
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]