deniskuzZ commented on code in PR #3937: URL: https://github.com/apache/hive/pull/3937#discussion_r1068311288
########## iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/IcebergTableUtil.java: ########## @@ -229,4 +229,17 @@ public static void rollback(Table table, AlterTableExecuteSpec.RollbackSpec.Roll } manageSnapshots.commit(); } + + /** + * Set the current snapshot for the iceberg table + * @param table the iceberg table + * @param value parameter of the rollback, that can be a timestamp in millis or a snapshot id + */ + public static void setCurrentSnapshot(Table table, Long value) { + ManageSnapshots manageSnapshots = table.manageSnapshots(); + LOG.debug("Setting the iceberg table {} from snapshot id {} to snapshot ID {}", table.name(), Review Comment: "Roll" / "Transition" the iceberg 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org