mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 20:51:48 +00:00
(improvement)(test) Fixed the intermittent failure of QueryByStructTest on Windows. (#1159)
This commit is contained in:
@@ -19,6 +19,7 @@ public class SemanticQueryResp extends QueryResult<Map<String, Object>> {
|
||||
List<QueryColumn> columns = Lists.newArrayList();
|
||||
String sql;
|
||||
QueryAuthorization queryAuthorization;
|
||||
boolean useCache;
|
||||
|
||||
public List<QueryColumn> getMetricColumns() {
|
||||
return columns.stream()
|
||||
|
||||
@@ -97,7 +97,9 @@ public class QueryServiceImpl implements QueryService {
|
||||
String cacheKey = queryCache.getCacheKey(queryReq);
|
||||
Object query = queryCache.query(queryReq, cacheKey);
|
||||
if (Objects.nonNull(query)) {
|
||||
return (SemanticQueryResp) query;
|
||||
SemanticQueryResp queryResp = (SemanticQueryResp) query;
|
||||
queryResp.setUseCache(true);
|
||||
return queryResp;
|
||||
}
|
||||
StatUtils.get().setUseResultCache(false);
|
||||
//3 query
|
||||
|
||||
Reference in New Issue
Block a user