Skip to content

Commit

Permalink
No data updated needed when no table parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
insyncoss committed Apr 12, 2023
1 parent 8439451 commit 45df014
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,8 @@ public void update(final ConnectorRequestContext requestContext, final TableInfo
try {
final Map<String, String> newTableMetadata = tableInfo.getMetadata();
if (MapUtils.isEmpty(newTableMetadata)) {
final String message = String.format("No parameters defined for iceberg table %s", name);
log.warn(message);
throw new InvalidMetaException(name, message, null);
log.warn("No parameters defined for iceberg table %s, no data update needed", name);
return;
}
final String prevLoc = newTableMetadata.get(DirectSqlTable.PARAM_PREVIOUS_METADATA_LOCATION);
final String newLoc = newTableMetadata.get(DirectSqlTable.PARAM_METADATA_LOCATION);
Expand Down

0 comments on commit 45df014

Please sign in to comment.