Co-authored-by: Youngwb <yangwenbo_mailbox@163.com>
This commit is contained in:
parent
f6ab8e8b94
commit
7f0a2acad5
|
|
@ -142,11 +142,15 @@ public abstract class DeltaLakeMetastore implements IDeltaLakeMetastore {
|
|||
Table deltaTable = Table.forPath(deltaLakeEngine, path);
|
||||
snapshot = (SnapshotImpl) deltaTable.getLatestSnapshot(deltaLakeEngine);
|
||||
} catch (TableNotFoundException e) {
|
||||
LOG.error("Failed to find Delta table for {}.{}.{}, {}", catalogName, dbName, tableName, e.getMessage());
|
||||
throw new SemanticException("Failed to find Delta table for " + catalogName + "." + dbName + "." + tableName);
|
||||
LOG.error("Failed to find Delta table for {}.{}.{}, {}. caused by : {}", catalogName, dbName, tableName,
|
||||
e.getMessage(), e.getCause());
|
||||
throw new SemanticException("Failed to find Delta table for %s.%s.%s, %s. caused by : %s", catalogName,
|
||||
dbName, tableName, e.getMessage(), e.getCause());
|
||||
} catch (Exception e) {
|
||||
LOG.error("Failed to get latest snapshot for {}.{}.{}, {}", catalogName, dbName, tableName, e.getMessage());
|
||||
throw new SemanticException("Failed to get latest snapshot for " + catalogName + "." + dbName + "." + tableName);
|
||||
LOG.error("Failed to get latest snapshot for {}.{}.{}, {}. caused by : {}", catalogName, dbName,
|
||||
tableName, e.getMessage(), e.getCause());
|
||||
throw new SemanticException("Failed to get latest snapshot for %s.%s.%s, %s. caused by : %s",
|
||||
catalogName, dbName, tableName, e.getMessage(), e.getCause());
|
||||
}
|
||||
return new DeltaLakeSnapshot(dbName, tableName, deltaLakeEngine, snapshot, metastoreTable);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue