[
https://issues.apache.org/jira/browse/HUDI-7136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Danny Chen closed HUDI-7136.
----------------------------
Resolution: Fixed
Fixed via master branch: 48b1737b30d1c5f9f82306136b13436f3c27ca5b
> in the dfs catalog scenario, solve the problem of Primary key definition is
> missing
> -----------------------------------------------------------------------------------
>
> Key: HUDI-7136
> URL: https://issues.apache.org/jira/browse/HUDI-7136
> Project: Apache Hudi
> Issue Type: Bug
> Reporter: 陈磊
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.14.1
>
>
> in the dfs catalog scenario, solve the problem of Primary key definition is
> missing
> demo:
> {code:java}
> // sql
> CREATE CATALOG hudi_catalog WITH(
> 'type' = 'hudi',
> 'catalog.path' = 'file:///Users/x/x/others/data/hudi-warehouse/',
> 'mode' = 'dfs'
> );
> CREATE TABLE IF NOT EXISTS hudi_catalog.tmp.ctn4
> (
> f1 string,
> f2 string,
> primary key (f1) not enforced
> ) WITH (
> 'connector' = 'hudi',
> 'path' = 'file:///Users/x/x/others/data/hudi-warehouse/ctn4',
> 'table.type' = 'MERGE_ON_READ',
> 'write.operation' = 'upsert',
> 'hoodie.datasource.write.recordkey.field' = 'f1'
> ) ;
> {code}
> exception:
> {code:java}
> Primary key definition is missing {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)