You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2020/04/06 23:08:53 UTC

[GitHub] [incubator-hudi] bvaradar commented on issue #1488: [SUPPORT] Hudi table has only five rows when record key is binary

bvaradar commented on issue #1488: [SUPPORT] Hudi table has only five rows when record key is binary
URL: https://github.com/apache/incubator-hudi/issues/1488#issuecomment-610082513
 
 
   @jvaesteves : Yes, the default KeyGenerator (https://github.com/apache/incubator-hudi/blob/master/hudi-spark/src/main/scala/org/apache/hudi/DataSourceOptions.scala#L216) expects record keys and partition-paths to be string (other types converted to string using toString()). You can plugin your own implementation of keygenerator for binary types (record-keys).
   Try setting hoodie.datasource.write.keygenerator.class=org.apache.hudi.utilities.keygen.TimestampBasedKeyGenerator for fixing the partition-path alone. 
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services