You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "satish (Jira)" <ji...@apache.org> on 2020/08/25 20:33:00 UTC
[jira] [Created] (HUDI-1226) ComplexKeyGenerator doesnt work for
non partitioned tables
satish created HUDI-1226:
----------------------------
Summary: 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
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)