Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-8679 Enable partition stats and col stats by default - Phase 0
  3. HUDI-8584

Unify the unsupported types across SPARK and AVRO record type

    XMLWordPrintableJSON

Details

    Description

      As of now, here is what our unsupported types look like 

      private static boolean canCompare(Schema schema, HoodieRecordType recordType) {
        // if recordType is SPARK then we cannot compare RECORD and ARRAY types in addition to MAP type
        if (recordType == HoodieRecordType.SPARK) {
          return schema.getType() != Schema.Type.RECORD && schema.getType() != Schema.Type.ARRAY && schema.getType() != Schema.Type.MAP;
        }
        return schema.getType() != Schema.Type.MAP;
      } 

      Lets unify the exp here. 

      we can make MAP, ARRAYS, RECORD as unsupported types across both record types. Eventually we might move to SPARK record type. So, anyways those are not supported at the moment. 

       

       

       

      Attachments

        Issue Links

          Activity

            People

              shivnarayan sivabalan narayanan
              shivnarayan sivabalan narayanan
              Sagar Sumit
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: