lirui-apache commented on a change in pull request #9264: [FLINK-13192][hive] 
Add tests for different Hive table formats
URL: https://github.com/apache/flink/pull/9264#discussion_r309016668
 
 

 ##########
 File path: 
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/HiveCatalog.java
 ##########
 @@ -494,8 +495,22 @@ private static CatalogBaseTable 
instantiateCatalogTable(Table hiveTable) {
                String comment = properties.remove(HiveCatalogConfig.COMMENT);
 
                // Table schema
+               List<FieldSchema> fields;
+               if 
(org.apache.hadoop.hive.ql.metadata.Table.hasMetastoreBasedSchema(hiveConf,
+                               
hiveTable.getSd().getSerdeInfo().getSerializationLib())) {
 
 Review comment:
   I think you mean `org.apache.hadoop.hive.ql.metadata.Table.getCols()`. But 
we only have an instance of `org.apache.hadoop.hive.metastore.api.Table` here. 
Do you think we should create a `org.apache.hadoop.hive.ql.metadata.Table` and 
call `getCols()`?

----------------------------------------------------------------
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