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] [Commented] (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:comment-tabpanel&focusedCommentId=17685065#comment-17685065 ] 

Danny Chen commented on HUDI-5329:
----------------------------------

Fixed via master branch: 6436ef3ee2cb887cf25643c5c99f1fe34a64ec68

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