You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Raymond Xu (Jira)" <ji...@apache.org> on 2021/11/12 23:59:00 UTC

[jira] [Created] (HUDI-2755) Schema validation should be compatible on different write paths

Raymond Xu created HUDI-2755:
--------------------------------

             Summary: Schema validation should be compatible on different write paths
                 Key: HUDI-2755
                 URL: https://issues.apache.org/jira/browse/HUDI-2755
             Project: Apache Hudi
          Issue Type: Bug
          Components: DeltaStreamer
            Reporter: Raymond Xu


Details in [https://github.com/apache/hudi/issues/3953]

 

It's possible to add alias in the schema to make the compatibility check pass.
{quote}public static boolean schemaNameEquals(final Schema reader, final Schema writer) {
final String writerFullName = writer.getFullName();
if (objectsEqual(reader.getFullName(), writerFullName)) {
return true;
}
// Apply reader aliases:
if (reader.getAliases().contains(writerFullName)) {
return true;
}
return false;
}
{quote}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)