lirui-apache commented on a change in pull request #10625: [FLINK-15259][hive] 
HiveInspector.toInspectors() should convert Flink…
URL: https://github.com/apache/flink/pull/10625#discussion_r362193585
 
 

 ##########
 File path: 
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/client/HiveShim.java
 ##########
 @@ -232,4 +233,10 @@ SimpleGenericUDAFParameterInfo 
createUDAFParameterInfo(ObjectInspector[] params,
         * Converts a hive date instance to LocalDate which is expected by 
DataFormatConverter.
         */
        LocalDate toFlinkDate(Object hiveDate);
+
+       /**
+        * Converts a Hive primitive java object to corresponding Writable 
object. Throws CatalogException if the conversion
+        * is not supported.
+        */
+       Writable hivePrimitiveToWritable(Object value) throws CatalogException;
 
 Review comment:
   I'll change to throw `FlinkHiveException`. It's also a runtime exception but 
more specific to Hive connector.

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