ccaominh commented on a change in pull request #9235: Add join-related 
DataSource types, and analysis functionality.
URL: https://github.com/apache/druid/pull/9235#discussion_r369290698
 
 

 ##########
 File path: server/src/main/java/org/apache/druid/client/CacheUtil.java
 ##########
 @@ -99,7 +99,8 @@
     return QueryContexts.isUseCache(query)
            && strategy != null
            && cacheConfig.isUseCache()
-           && cacheConfig.isQueryCacheable(query);
+           && cacheConfig.isQueryCacheable(query)
+           && query.getDataSource().isCacheable();
 
 Review comment:
   
   
   Perhaps extract these four lines should be a helper method since it's 
duplicated in populateResultLevelCache().
   
   Is there a test that is affected by the addition of `isCacheable()` or 
should one be added?
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to