This is an automated email from the ASF dual-hosted git repository.

FlyingZC pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 6129ba8de11 Modify cache exist log in SQLStatementCompilerEngine 
(#38675)
6129ba8de11 is described below

commit 6129ba8de111eaa5db38ced49d18c14b5007c03a
Author: Zhengqiang Duan <[email protected]>
AuthorDate: Fri May 8 11:55:13 2026 +0800

    Modify cache exist log in SQLStatementCompilerEngine (#38675)
---
 .../sqlfederation/compiler/compiler/SQLStatementCompilerEngine.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/compiler/SQLStatementCompilerEngine.java
 
b/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/compiler/SQLStatementCompilerEngine.java
index 11bfda6b8a4..7ac492b111a 100644
--- 
a/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/compiler/SQLStatementCompilerEngine.java
+++ 
b/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/compiler/SQLStatementCompilerEngine.java
@@ -50,7 +50,7 @@ public final class SQLStatementCompilerEngine {
      */
     public SQLFederationExecutionPlan compile(final ExecutionPlanCacheKey 
cacheKey, final boolean useCache) {
         if (log.isDebugEnabled()) {
-            String cacheExists = null == executionPlanCache.get(cacheKey) ? 
"not exists" : "exists";
+            String cacheExists = null != 
executionPlanCache.getIfPresent(cacheKey) ? "exists" : "not exists";
             log.debug("Execution plan cache {} for SQL: {}, useCache: {}.", 
cacheExists, cacheKey.getSql(), useCache);
         }
         return useCache ? executionPlanCache.get(cacheKey) : 
cacheKey.getSqlStatementCompiler().compile(cacheKey.getSqlStatement(), 
cacheKey.getSqlStatement().getDatabaseType().getType());

Reply via email to