parisni commented on issue #11599:
URL: https://github.com/apache/hudi/issues/11599#issuecomment-2240158145

   I tested athena support for promotion type. It works fine, until a partition 
get mixed with multiple types (int/float); eg: after an upsert. The reason is 
in athena each partition has it's own schema, and it has to be updated with the 
promoted type. Otherwise such error will occur:
   ```
   HIVE_PARTITION_SCHEMA_MISMATCH: There is a mismatch between the table and 
partition schemas. The types are incompatible and cannot be coerced. The column 
'int_to_float' in table 'db.hudi_promotion' is declared as type 'float', but 
partition 'version=0/event_date=2024-01-01/event_hour=08' declared column 
'int_to_float' as type 'int'.
   ```
   or 
   ```
   HIVE_BAD_DATA: Field float_to_double's type DOUBLE in parquet file 
s3://bucket/test_promotion/hudi_promotion/version=0/event_date=2024-01-01/event_hour=08/45a8c801-26e9-4b57-a47d-640e1287afa1-0_0-55-183_20240719192221903.parquet
 is incompatible with type real defined in table schema
   ```
   
   I guess we should reconsider approach proposed here #9071


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to