You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Danny Chen (Jira)" <ji...@apache.org> on 2023/02/07 06:17:00 UTC

[jira] [Updated] (HUDI-5329) spark reads hudi table error when flink creates the table without preCombine fields

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

Danny Chen updated HUDI-5329:
-----------------------------
    Fix Version/s: 0.13.1
                   0.14.0

> spark reads hudi table error when flink creates the table without preCombine fields
> -----------------------------------------------------------------------------------
>
>                 Key: HUDI-5329
>                 URL: https://issues.apache.org/jira/browse/HUDI-5329
>             Project: Apache Hudi
>          Issue Type: Bug
>          Components: flink, flink-sql
>            Reporter: wuwenchi
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.13.1, 0.14.0
>
>
> 1. flink create a hudi table :
> {code:sql}
> CREATE TABLE hudi_table(
>   id int PRIMARY KEY NOT ENFORCED, 
>   name string, 
>   price double
> ) WITH (
> 'connector' = 'hudi',
> 'path' = 'file:///tmp/hudi/database/hudi_table',
> 'table.type' = 'MERGE_ON_READ'
> );
> {code}
> 2. then spark get this table:
> {code:sql}
> create table hudi_table using hudi location '/tmp/hudi/database/hudi_table';
> {code}
> It will report:
> java.lang.IllegalArgumentException: Can't find preCombineKey `ts` in root



--
This message was sent by Atlassian Jira
(v8.20.10#820010)