mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-29 18:58:05 +08:00
remove duplicate code of AliyunServerlessSparkDataSourceProcessor (#16422)
This commit is contained in:
parent
05e64c8ba0
commit
d2f857ec86
@ -49,8 +49,7 @@ public class AliyunServerlessSparkDataSourceProcessor extends AbstractDataSource
|
||||
AliyunServerlessSparkDataSourceParamDTO aliyunServerlessSparkDataSourceParamDTO =
|
||||
(AliyunServerlessSparkDataSourceParamDTO) datasourceParamDTO;
|
||||
if (StringUtils.isEmpty(aliyunServerlessSparkDataSourceParamDTO.getRegionId()) ||
|
||||
StringUtils.isEmpty(aliyunServerlessSparkDataSourceParamDTO.getAccessKeyId()) ||
|
||||
StringUtils.isEmpty(aliyunServerlessSparkDataSourceParamDTO.getRegionId())) {
|
||||
StringUtils.isEmpty(aliyunServerlessSparkDataSourceParamDTO.getAccessKeyId())) {
|
||||
throw new IllegalArgumentException("spark datasource param is not valid");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user