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

Add support for composite keys in NonpartitionedKeyGenerator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.8.0
    • None

    Description

      We are using NonpartitionedKeyGenerator for non-partitioned tables. However, this generator has the limitation that only a single column can be specified as the record key for the table. We have some tables which need a composite key. The ask is to support composite keys for non-partitioned tables.

       

      Currently, we can use this config, which is not straight-forward.

      hoodie.datasource.write.keygenerator.class: org.apache.hudi.keygen.ComplexKeyGenerator
      hoodie.datasource.write.partitionpath.field: ""
      

       

      Can we add support to the NonpartitionedKeyGenerator class to improve usability?

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Guan Jintao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: