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

[jira] [Resolved] (HUDI-1653) Add support for composite keys in NonpartitionedKeyGenerator

     [ https://issues.apache.org/jira/browse/HUDI-1653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Li resolved HUDI-1653.
---------------------------
    Resolution: Fixed

> Add support for composite keys in NonpartitionedKeyGenerator
> ------------------------------------------------------------
>
>                 Key: HUDI-1653
>                 URL: https://issues.apache.org/jira/browse/HUDI-1653
>             Project: Apache Hudi
>          Issue Type: Improvement
>            Reporter: Jintao
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 0.8.0
>
>
> 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.
> {code:java}
> hoodie.datasource.write.keygenerator.class: org.apache.hudi.keygen.ComplexKeyGenerator
> hoodie.datasource.write.partitionpath.field: ""
> {code}
>  
> Can we add support to the NonpartitionedKeyGenerator class to improve usability?
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)