[
https://issues.apache.org/jira/browse/HUDI-7167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HUDI-7167:
---------------------------------
Labels: pull-request-available (was: )
> 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: 陈磊
> Priority: Major
> Labels: pull-request-available
>
> 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)