You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2021/09/24 09:36:29 UTC

[GitHub] [incubator-doris] morningman commented on a change in pull request #6736: [Bug] When using view, make toSql method generates the final sql

morningman commented on a change in pull request #6736:
URL: https://github.com/apache/incubator-doris/pull/6736#discussion_r715466179



##########
File path: fe/fe-core/src/main/java/org/apache/doris/qe/cache/SqlCache.java
##########
@@ -41,7 +41,7 @@ public void setCacheInfo(CacheAnalyzer.CacheTable latestTable) {
 
     public InternalService.PFetchCacheResult getCacheData(Status status) {
         InternalService.PFetchCacheRequest request = InternalService.PFetchCacheRequest.newBuilder()
-                .setSqlKey(CacheProxy.getMd5(selectStmt.getOrigStmt().originStmt))
+                .setSqlKey(CacheProxy.getMd5(selectStmt.toSql()))

Review comment:
       Why use `toSql()` can solve the issue #6735?




-- 
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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org