[ 
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)

Reply via email to