陈磊 created HUDI-7167:
------------------------

             Summary: Type mismatch issue when Spark writes to Hudi and 
synchronizes metadata
                 Key: HUDI-7167
                 URL: https://issues.apache.org/jira/browse/HUDI-7167
             Project: Apache Hudi
          Issue Type: Bug
            Reporter: 陈磊


When I write Hudi data through Spark, when synchronizing data, I encounter 
situations where SmallInt and Byte types cannot be converted to Int.
{code:java}
CREATE TABLE if not exists hudi_ddl_cow_t2
(
qgp string,
sfb byte
) using hudi
tblproperties (
    type = 'cow',
    primaryKey = 'qgp'
 );
 
insert into $tb values('q1', 1){code}
Throw an exception:
{code:java}
Could not convert field Type from TINYINT to int for field sfb {code}



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

Reply via email to