yihua opened a new issue, #20898:
URL: https://github.com/apache/hudi/issues/20898

   `spark.sql.storeAssignmentPolicy` does not apply to the assignments of a 
Spark SQL UPDATE or MERGE INTO on a Hudi table. Spark casts each assigned value 
to the column type before Hudi sees it, so a STRING assigned to an INT column 
is cast at runtime, a BIGINT is accepted under STRICT, and a struct value is 
matched to the column by position whatever its field names; a struct whose 
fields are in another order cannot be assigned at all. A table of a non-native 
table format (`hoodie.table.format` other than `native`) should check values 
against the policy at analysis time the way tables with row-level operations 
do, while native tables keep today's behaviour.
   


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