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

[jira] [Updated] (HUDI-2307) Fix not need for a primary key when delete_partition with spark ds

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

liujinhui updated HUDI-2307:
----------------------------
    Summary: Fix not need for a primary key when delete_partition with spark ds  (was: Fix the need for a primary key when delete_partition with spark ds)

> Fix not need for a primary key when delete_partition with spark ds
> ------------------------------------------------------------------
>
>                 Key: HUDI-2307
>                 URL: https://issues.apache.org/jira/browse/HUDI-2307
>             Project: Apache Hudi
>          Issue Type: Bug
>            Reporter: liujinhui
>            Priority: Major
>             Fix For: 0.9.0
>
>
>  
> {code:java}
> Caused by: org.apache.hudi.exception.HoodieKeyException: recordKey value: "null" for field: "uuid" cannot be null or empty.Caused by: org.apache.hudi.exception.HoodieKeyException: recordKey value: "null" for field: "uuid" cannot be null or empty. at org.apache.hudi.keygen.KeyGenUtils.getRecordKey(KeyGenUtils.java:141) at org.apache.hudi.keygen.SimpleAvroKeyGenerator.getRecordKey(SimpleAvroKeyGenerator.java:50) at org.apache.hudi.keygen.SimpleKeyGenerator.getRecordKey(SimpleKeyGenerator.java:58) at org.apache.hudi.keygen.BaseKeyGenerator.getKey(BaseKeyGenerator.java:62) at org.apache.hudi.HoodieSparkSqlWriter$$anonfun$5.apply(HoodieSparkSqlWriter.scala:195) at org.apache.hudi.HoodieSparkSqlWriter$$anonfun$5.apply(HoodieSparkSqlWriter.scala:195) at scala.collection.Iterator$$anon$11.next(Iterator.scala:410) at scala.collection.Iterator$$anon$11.next(Iterator.scala:410)
> {code}
>  
> When using delete_partition, we should not rely on the primary key
>  
> aa 



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