Merge pull request #9096 from dataease/pr@dev-v2@refactor_sql_log

refactor: 优化SQL输出日志
This commit is contained in:
Junjun 2024-04-15 15:19:14 +08:00 committed by GitHub
commit bcbc701d01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -475,6 +475,7 @@ public class DatasetDataManage {
Order2SQLObj.getOrders(sqlMeta, fields, datasetGroupInfoDTO.getSortFields(), crossDs, dsMap); Order2SQLObj.getOrders(sqlMeta, fields, datasetGroupInfoDTO.getSortFields(), crossDs, dsMap);
String querySQL = SQLProvider.createQuerySQLWithLimit(sqlMeta, false, needOrder, true, 0, 1000); String querySQL = SQLProvider.createQuerySQLWithLimit(sqlMeta, false, needOrder, true, 0, 1000);
querySQL = SqlUtils.rebuildSQL(querySQL, sqlMeta, crossDs, dsMap); querySQL = SqlUtils.rebuildSQL(querySQL, sqlMeta, crossDs, dsMap);
logger.info("calcite data enum sql: " + querySQL);
// 通过数据源请求数据 // 通过数据源请求数据
// 调用数据源的calcite获得data // 调用数据源的calcite获得data
@ -497,7 +498,6 @@ public class DatasetDataManage {
} }
list.add(previewData); list.add(previewData);
} }
logger.info("calcite data enum sql: " + querySQL);
} }
// 重新构造data // 重新构造data