fix: 修复更改跨源判定逻辑导致的问题

This commit is contained in:
junjun
2025-04-16 14:51:51 +08:00
committed by dataeaseShu
parent d497d6c892
commit 2e6b532235
2 changed files with 2 additions and 1 deletions

View File

@@ -326,7 +326,7 @@ public class DatasetDataManage {
for (Map.Entry<Long, DatasourceSchemaDTO> next : dsMap.entrySet()) {
dsList.add(next.getValue().getType());
}
boolean crossDs = Utils.isCrossDs(dsMap);
boolean crossDs = datasetGroupInfoDTO.getIsCross();
if (!crossDs) {
if (notFullDs.contains(dsMap.entrySet().iterator().next().getValue().getType()) && (boolean) sqlMap.get("isFullJoin")) {
DEException.throwException(Translator.get("i18n_not_full"));

View File

@@ -1094,6 +1094,7 @@ public class DatasourceServer implements DatasourceApi {
PreviewSqlDTO previewSqlDTO = new PreviewSqlDTO();
previewSqlDTO.setSql(sql);
previewSqlDTO.setDatasourceId(id);
previewSqlDTO.setIsCross(false);
return datasetDataManage.previewSql(previewSqlDTO);
}