Help Center/ MapReduce Service/ Component Operation Guide (LTS)/ Using Hudi/ Common Issues About Hudi/ SQLException Is Reported During Hive Data Synchronization
Updated on 2026-06-27 GMT+08:00

SQLException Is Reported During Hive Data Synchronization

Question

The following error is reported during Hive data synchronization:

Caused by: java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Unable to alter table. The following columns have types incompatible with the existing columns in their respective positions :
__col1,__col2

Answer

This error usually occurs when you try to add a new column to an existing Hive table using the HiveSyncTool.java class. Databases typically prohibit changing a column to a lower-order data type or any type that conflicts with existing or future data. To solve this problem, set hive.metastore.disallow.in compatible.col.type.changes to false.