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

ComplexKeyGenerator doesnt work for non partitioned tables

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.7.0
    • None

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

              satishkotha satish
              satishkotha satish
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: