Skip to content

Commit

Permalink
removed validator class for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Blazer-007 committed Sep 24, 2024
1 parent 24b4823 commit d8356e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 427 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

import org.apache.commons.lang3.StringUtils;
import org.apache.hadoop.fs.FileSystem;
import org.apache.iceberg.TableMetadata;

import com.google.common.base.Preconditions;

Expand Down Expand Up @@ -88,9 +87,10 @@ protected IcebergDataset createIcebergDataset(IcebergCatalog sourceIcebergCatalo
IcebergTable destIcebergTable = destinationIcebergCatalog.openTable(destDbName, destTableName);
Preconditions.checkArgument(destinationIcebergCatalog.tableAlreadyExists(destIcebergTable),
String.format("Missing Destination Iceberg Table: {%s}.{%s}", destDbName, destTableName));
TableMetadata srcTableMetadata = srcIcebergTable.accessTableMetadata();
TableMetadata destTableMetadata = destIcebergTable.accessTableMetadata();
IcebergTableMetadataValidator.validateSourceAndDestinationTablesMetadata(srcTableMetadata, destTableMetadata);
// TODO: Add Validator for source and destination tables later
// TableMetadata srcTableMetadata = srcIcebergTable.accessTableMetadata();
// TableMetadata destTableMetadata = destIcebergTable.accessTableMetadata();
// IcebergTableMetadataValidator.validateSourceAndDestinationTablesMetadata(srcTableMetadata, destTableMetadata);
return new IcebergPartitionDataset(srcIcebergTable, destIcebergTable, properties, fs, getConfigShouldCopyMetadataPath(properties));
}
}

This file was deleted.

Loading

0 comments on commit d8356e1

Please sign in to comment.