casionone commented on code in PR #4072:
URL: https://github.com/apache/linkis/pull/4072#discussion_r1060234349
##########
linkis-public-enhancements/linkis-datasource/linkis-metadata/src/main/java/org/apache/linkis/metadata/service/impl/DataSourceServiceImpl.java:
##########
@@ -258,6 +258,18 @@ public JsonNode getPartitions(MetadataQueryParam
queryParam) {
return partitionJson;
}
+ @DataSource(name = DSEnum.FIRST_DATA_SOURCE)
+ @Override
+ public boolean partitionExists(MetadataQueryParam queryParam) {
+ List<String> partitions = hiveMetaDao.getPartitions(queryParam);
+ boolean res = Boolean.FALSE;
+ if (CollectionUtils.isNotEmpty(partitions)
+ && partitions.contains(queryParam.getPartitionName())) {
Review Comment:
Need to confirm about:
Is hive case insensitive?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]