You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "wulingqi (Jira)" <ji...@apache.org> on 2022/03/27 14:11:00 UTC
[jira] [Closed] (HUDI-3725) no primary key error when spark read flink hudi table use default uuid
[ https://issues.apache.org/jira/browse/HUDI-3725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
wulingqi closed HUDI-3725.
--------------------------
Resolution: Not A Bug
> no primary key error when spark read flink hudi table use default uuid
> ----------------------------------------------------------------------
>
> Key: HUDI-3725
> URL: https://issues.apache.org/jira/browse/HUDI-3725
> Project: Apache Hudi
> Issue Type: Bug
> Components: flink
> Reporter: wulingqi
> Priority: Minor
>
> flink sql like the following will not write default record key uuid to hoodie.properties, when use spark to read it will throw *...There are no primary key...* Exception
> {code:java}
> CREATE TABLE t1(
> uuid VARCHAR(20) ,
> name VARCHAR(10),
> age INT,
> ts TIMESTAMP(3),
> `partition` VARCHAR(20)
> )
> PARTITIONED BY (`partition`)
> WITH (
> 'connector' = 'hudi',
> 'path' = '${path}',
> 'table.type' = 'MERGE_ON_READ' -- this creates a MERGE_ON_READ table, by default is COPY_ON_WRITE
> ); {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)