Skip to content

Commit 436639a

Browse files
HIVE-28543: Iceberg: Previous snapshotId is stored in backend database (Raghav Aggarwal, reviewed by Ayush Saxena, Butao Zhang, Denys Kuzmenko)
This commit is essentially the revert of HIVE-27049 Closes #5475
1 parent 34a9c63 commit 436639a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergMetaHook.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
import org.apache.iceberg.PartitionsTable;
9090
import org.apache.iceberg.Schema;
9191
import org.apache.iceberg.SchemaParser;
92-
import org.apache.iceberg.Snapshot;
9392
import org.apache.iceberg.Table;
9493
import org.apache.iceberg.TableMetadata;
9594
import org.apache.iceberg.TableMetadataParser;
@@ -1062,10 +1061,6 @@ public void postGetTable(org.apache.hadoop.hive.metastore.api.Table hmsTable) {
10621061
if (hmsTable != null) {
10631062
try {
10641063
Table tbl = IcebergTableUtil.getTable(conf, hmsTable);
1065-
Snapshot snapshot = tbl.currentSnapshot();
1066-
if (snapshot != null) {
1067-
hmsTable.getParameters().put("current-snapshot-id", String.valueOf(snapshot.snapshotId()));
1068-
}
10691064
String formatVersion = String.valueOf(((BaseTable) tbl).operations().current().formatVersion());
10701065
hmsTable.getParameters().put(TableProperties.FORMAT_VERSION, formatVersion);
10711066
// Set the serde info

0 commit comments

Comments
 (0)