jsbali commented on a change in pull request #2879:
URL: https://github.com/apache/hudi/pull/2879#discussion_r662463320



##########
File path: 
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/util/HiveSchemaUtil.java
##########
@@ -138,8 +140,28 @@ private static boolean isFieldExistsInSchema(Map<String, 
String> newTableSchema,
    * @param messageType : Parquet Schema
    * @return : Hive Table schema read from parquet file MAP[String,String]
    */
-  private static Map<String, String> 
convertParquetSchemaToHiveSchema(MessageType messageType, boolean 
supportTimestamp) throws IOException {
-    Map<String, String> schema = new LinkedHashMap<>();
+  public static Map<String, String> 
convertParquetSchemaToHiveSchema(MessageType messageType, boolean 
supportTimestamp) throws IOException {
+    return convertMapSchemaToHiveSchema(parquetSchemaToMapSchema(messageType, 
supportTimestamp));

Review comment:
       We were doing it before anyways. I have just broken it up for now for 
saving the work when we do the create table call in HMS api where we might have 
to do redundant works. Let me see if we can better refactor it.




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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to