You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/05/23 15:32:00 UTC

[GitHub] [flink] xuefuz commented on a change in pull request #8449: [FLINK-12235][hive] Support Hive partition in HiveCatalog

xuefuz commented on a change in pull request #8449: [FLINK-12235][hive] Support Hive partition in HiveCatalog
URL: https://github.com/apache/flink/pull/8449#discussion_r287005708
 
 

 ##########
 File path: flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/HiveCatalog.java
 ##########
 @@ -608,44 +611,283 @@ private  static Table instantiateHiveTable(ObjectPath tablePath, CatalogBaseTabl
 	// ------ partitions ------
 
 	@Override
-	public void createPartition(ObjectPath tablePath, CatalogPartitionSpec partitionSpec, CatalogPartition partition, boolean ignoreIfExists)
-			throws TableNotExistException, TableNotPartitionedException, PartitionSpecInvalidException, PartitionAlreadyExistsException, CatalogException {
-		throw new UnsupportedOperationException();
+	public boolean partitionExists(ObjectPath tablePath, CatalogPartitionSpec partitionSpec)
+			throws CatalogException {
+		checkNotNull(tablePath, "Table path cannot be null");
+		checkNotNull(partitionSpec, "CatalogPartitionSpec cannot be null");
+		try {
 
 Review comment:
   Nit: keeping an empty line after checks would be good.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services