924060929 commented on code in PR #69299:
URL: https://github.com/apache/doris/pull/69299#discussion_r4321606877
##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergConnectorMetadata.java:
##########
@@ -424,26 +438,56 @@ private String loadTableComment(ConnectorSession session,
String dbName, String
@Override
public Optional<ConnectorTableHandle> getTableHandle(
ConnectorSession session, String dbName, String tableName) {
+ IcebergTableHandle handle = new IcebergTableHandle(dbName, tableName);
+ if (IcebergStatementScope.hasReadTable(session, dbName, tableName)
+ || (tableCache != null &&
tableCache.contains(TableIdentifier.of(dbName, tableName)))) {
Review Comment:
Fixed in 740783d90ce96b5c89251aa24581d042a07fd578. Iceberg tableExists now
checks current catalog existence independently of cached/pinned read metadata.
The generic DROP path uses that preflight before resolving the planning handle,
preserving the existing IF EXISTS cleanup and strict missing-table error. Read
planning still reuses its frozen handles. Added cached/pinned metadata
existence tests and externally dropped-table routing tests for both IF EXISTS
modes. All 96 scoped tests and build.sh --fe with Checkstyle passed. Also
verified the FE PRs can retain the partition-rule Env reference independently
of the scheduling import removal.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]