remove duplicate code of AliyunServerlessSparkDataSourceProcessor (#16422)

This commit is contained in:
wangxj3 2024-08-06 14:16:48 +08:00 committed by GitHub
parent 05e64c8ba0
commit d2f857ec86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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");
}
}