wenzhenghu commented on code in PR #65126:
URL: https://github.com/apache/doris/pull/65126#discussion_r3637515305
##########
fe/fe-core/src/main/java/org/apache/doris/datasource/ExternalDatabase.java:
##########
@@ -442,27 +471,17 @@ public DatabaseProperty getDbProperties() {
@Override
public boolean isTableExist(String tableName) {
SessionContext sessionContext = SessionContext.current();
+ if (extCatalog.shouldBypassTableNameCache(sessionContext)) {
Review Comment:
Fixed in 48291325300.
The delegated-session bypass now enumerates remote names only when
local-to-remote resolution is required (`lower_case_table_names` mode 1/2,
`lower_case_meta_names`, or `meta_names_mapping`). Plain mode 0 calls
`tableExist()` directly with the requested name, restoring the point-lookup
path without populating shared caches.
I also separated list and existence-call tracing in
`ExternalDatabaseSessionContextTest`. The tests now verify that mode 0 performs
no table enumeration, while mode 1 mixed-case and mode 2 lookups still resolve
the remote name without shared-cache use. `ExternalDatabaseSessionContextTest`
(8 tests) and `ExternalDatabaseTest` (22 tests) pass, and FE checkstyle reports
0 violations.
--
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]