Merge pull request #6942 from dataease/pr@dev@fix_union

fix: 关联数据集报错 #6894
This commit is contained in:
Junjun 2023-11-30 16:37:01 +08:00 committed by GitHub
commit 58e4c593b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1659,7 +1659,7 @@ public class DataSetTableService {
}
List<DatasetTableField> fields = dataSetTableFieldsService.getListByIdsEach(unionDTO.getCurrentDsField());
String[] array = fields.stream()
String[] array = fields.stream().filter(Objects::nonNull)
.map(f -> table + "." + f.getDataeaseName() + " AS "
+ TableUtils.fieldName(tableId + "_" + f.getDataeaseName()))
.toArray(String[]::new);