Merge pull request #6942 from dataease/pr@dev@fix_union
fix: 关联数据集报错 #6894
This commit is contained in:
commit
58e4c593b2
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user