[HUDI 1615] Fixing null schema in bulk_insert row writer path (#2653)
* [HUDI-1615] Avoid passing in null schema from row writing/deltastreamer * Fixing null schema in bulk insert row writer path * Fixing tests Co-authored-by: vc <vinoth@apache.org>
This commit is contained in:
committed by
GitHub
parent
16864aee14
commit
b038623ed3
@@ -125,7 +125,8 @@
|
||||
"name":"extraMetadata",
|
||||
"type":["null", {
|
||||
"type":"map",
|
||||
"values":"string"
|
||||
"values":"string",
|
||||
"default": null
|
||||
}],
|
||||
"default": null
|
||||
},
|
||||
|
||||
@@ -66,7 +66,7 @@ public class CommitUtils {
|
||||
if (extraMetadata.isPresent()) {
|
||||
extraMetadata.get().forEach(commitMetadata::addMetadata);
|
||||
}
|
||||
commitMetadata.addMetadata(HoodieCommitMetadata.SCHEMA_KEY, schemaToStoreInCommit);
|
||||
commitMetadata.addMetadata(HoodieCommitMetadata.SCHEMA_KEY, schemaToStoreInCommit == null ? "" : schemaToStoreInCommit);
|
||||
commitMetadata.setOperationType(operationType);
|
||||
return commitMetadata;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user