mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-18 12:24:21 +08:00
(opt)(headless)Dimension value loading could bypass semantic translation.
This commit is contained in:
@@ -123,7 +123,9 @@ public class S2SemanticLayerService implements SemanticLayerService {
|
||||
|
||||
// 3 translate query
|
||||
QueryStatement queryStatement = buildQueryStatement(queryReq, user);
|
||||
semanticTranslator.translate(queryStatement);
|
||||
if (!queryStatement.isTranslated()) {
|
||||
semanticTranslator.translate(queryStatement);
|
||||
}
|
||||
|
||||
// Check whether the dimensions of the metric drill-down are correct temporarily,
|
||||
// add the abstraction of a validator later.
|
||||
|
||||
@@ -296,6 +296,8 @@ public class DictUtils {
|
||||
modelIds.add(dictItemResp.getModelId());
|
||||
QuerySqlReq querySqlReq = new QuerySqlReq();
|
||||
querySqlReq.setSql(sql);
|
||||
// bypass semantic translation
|
||||
querySqlReq.getSqlInfo().setQuerySQL(sql);
|
||||
querySqlReq.setNeedAuth(false);
|
||||
querySqlReq.setModelIds(modelIds);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user