ZihanLi58 commented on a change in pull request #3343:
URL: https://github.com/apache/gobblin/pull/3343#discussion_r678629423
##########
File path:
gobblin-hive-registration/src/main/java/org/apache/gobblin/hive/writer/HiveMetadataWriter.java
##########
@@ -292,9 +292,9 @@ private void schemaUpdateHelper(GobblinMetadataChangeEvent
gmce, HiveSpec spec,
return;
}
//Force to set the schema even there is no schema literal defined in the
spec
- spec.getTable()
- .getSerDeProps()
-
.setProp(AvroSerdeUtils.AvroTableProperties.SCHEMA_LITERAL.getPropName(),
latestSchemaMap.get(tableKey));
+ if(latestSchemaMap.containsKey(tableKey)) {
Review comment:
Thanks for catching that. just revert the change, will create a separate
pr for that fix.
--
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]