wuwenchi created HUDI-5329:
------------------------------

             Summary: 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


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)

Reply via email to