Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-7201

reconcileSchemaRequirements returns empty schema if the incoming data is empty

    XMLWordPrintableJSON

Details

    Description

      if (sourceSchema.getType() == Schema.Type.NULL || sourceSchema.getFields().isEmpty() || targetSchema.getFields().isEmpty()) {
        return sourceSchema;
      } 

      This will allow illegal schema evolutions if the previous commit was empty

      Attachments

        Issue Links

          Activity

            People

              jonvex Jonathan Vexler
              jonvex Jonathan Vexler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: