bowenli86 commented on a change in pull request #8694: [FLINK-12705][hive] 
Allow user to specify the Hive version in use
URL: https://github.com/apache/flink/pull/8694#discussion_r293693170
 
 

 ##########
 File path: 
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/client/HiveMetastoreClientWrapper.java
 ##########
 @@ -54,9 +57,12 @@
 
        private final IMetaStoreClient client;
        private final HiveConf hiveConf;
+       private final String hiveVersion;
 
-       public HiveMetastoreClientWrapper(HiveConf hiveConf) {
+       public HiveMetastoreClientWrapper(HiveConf hiveConf, String 
hiveVersion) {
                this.hiveConf = Preconditions.checkNotNull(hiveConf, "HiveConf 
cannot be null");
+               checkArgument(!StringUtils.isNullOrWhitespaceOnly(hiveVersion), 
"hiveVersion cannot be empty");
 
 Review comment:
   ```suggestion
                checkArgument(!StringUtils.isNullOrWhitespaceOnly(hiveVersion), 
"hiveVersion cannot be null or empty");
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to