Jonathan Vexler created HUDI-7201:
-------------------------------------

             Summary: reconcileSchemaRequirements returns empty schema if the 
incoming data is empty
                 Key: HUDI-7201
                 URL: https://issues.apache.org/jira/browse/HUDI-7201
             Project: Apache Hudi
          Issue Type: Bug
          Components: spark, spark-sql
            Reporter: Jonathan Vexler


{code:java}
if (sourceSchema.getType() == Schema.Type.NULL || 
sourceSchema.getFields().isEmpty() || targetSchema.getFields().isEmpty()) {
  return sourceSchema;
} {code}
This will allow illegal schema evolutions if the previous commit was empty



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to