Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-138

Parquet should allow a merge between required and optional schemas

    XMLWordPrintableJSON

Details

    Description

      In discussion with Ryan, he felt we should be able to merge from required binary to optional binary and the resulting schema would be optional

      https://github.com/Parquet/parquet-mr/blob/master/parquet-column/src/test/java/parquet/schema/TestMessageType.java

      try {
            t3.union(t4);
            fail("moving from optional to required");
          } catch (IncompatibleSchemaModificationException e) {
            assertEquals("repetition constraint is more restrictive: can not merge type required binary a into optional binary a", e.getMessage());
          }
      

      Attachments

        Activity

          People

            nstq Nicolas Trinquier
            rjustice Robert Justice
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: