Preparation for Avro update (#2650)
This commit is contained in:
committed by
GitHub
parent
8bc65b9318
commit
aa0da72c59
@@ -330,7 +330,7 @@ public class TableSchemaResolver {
|
||||
for (final Field newSchemaField : newSchema.getFields()) {
|
||||
final Field oldSchemaField = SchemaCompatibility.lookupWriterField(oldSchema, newSchemaField);
|
||||
if (oldSchemaField == null) {
|
||||
if (newSchemaField.defaultValue() == null) {
|
||||
if (newSchemaField.defaultVal() == null) {
|
||||
// C3: newly added field in newSchema does not have a default value
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user