mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 13:07:32 +00:00
[fix][headless-chat]Fix NPE problem.
This commit is contained in:
@@ -11,6 +11,7 @@ import org.apache.commons.collections4.CollectionUtils;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@@ -56,8 +57,12 @@ public class LLMReq {
|
|||||||
.map(dimension -> dimension.getName())
|
.map(dimension -> dimension.getName())
|
||||||
.collect(Collectors.toList()));
|
.collect(Collectors.toList()));
|
||||||
}
|
}
|
||||||
fieldNameList.add(partitionTime.getName());
|
if (Objects.nonNull(partitionTime)) {
|
||||||
fieldNameList.add(primaryKey.getName());
|
fieldNameList.add(partitionTime.getName());
|
||||||
|
}
|
||||||
|
if (Objects.nonNull(primaryKey)) {
|
||||||
|
fieldNameList.add(primaryKey.getName());
|
||||||
|
}
|
||||||
return fieldNameList;
|
return fieldNameList;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user