zjuwangg commented on a change in pull request #9342: [FLINK-13438][hive] Fix 
DataTypes.DATE/TIME/TIMESTAMP support for hive connectors
URL: https://github.com/apache/flink/pull/9342#discussion_r310472230
 
 

 ##########
 File path: 
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/connectors/hive/HiveTableSource.java
 ##########
 @@ -70,7 +72,11 @@
        public HiveTableSource(JobConf jobConf, ObjectPath tablePath, 
CatalogTable catalogTable) {
                this.jobConf = Preconditions.checkNotNull(jobConf);
                this.tablePath = Preconditions.checkNotNull(tablePath);
-               this.catalogTable = Preconditions.checkNotNull(catalogTable);
+
+               Preconditions.checkArgument(catalogTable instanceof 
CatalogTableImpl);
+               Preconditions.checkNotNull(catalogTable);
 
 Review comment:
   `checkNotNull` should precede `checkArgument`.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to