You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Vinoth Chandar (Jira)" <ji...@apache.org> on 2021/01/21 05:33:00 UTC

[jira] [Updated] (HUDI-1226) ComplexKeyGenerator doesnt work for non partitioned tables

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

Vinoth Chandar updated HUDI-1226:
---------------------------------
    Fix Version/s: 0.7.0

> ComplexKeyGenerator doesnt work for non partitioned tables
> ----------------------------------------------------------
>
>                 Key: HUDI-1226
>                 URL: https://issues.apache.org/jira/browse/HUDI-1226
>             Project: Apache Hudi
>          Issue Type: Wish
>            Reporter: satish
>            Assignee: satish
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.7.0
>
>
> 1) If we pass empty string(-hoodie-conf hoodie.datasource.write.partitionpath.field=), generator  returns 'default' as partitionpath
> 2) if we pass delimiter alone (-hoodie-conf hoodie.datasource.write.partitionpath.field=,), it throws 
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> 	at java.lang.AbstractStringBuilder.deleteCharAt(AbstractStringBuilder.java:824)
> 	at java.lang.StringBuilder.deleteCharAt(StringBuilder.java:253)
> 	at org.apache.hudi.keygen.KeyGenUtils.getRecordPartitionPath(KeyGenUtils.java:80)
> 	at org.apache.hudi.keygen.ComplexKeyGenerator.getPartitionPath(ComplexKeyGenerator.java:52)
> 	at org.apache.hudi.keygen.BuiltinKeyGenerator.getKey(BuiltinKeyGenerator.java:75)



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