linshan-ma edited a comment on pull request #2262:
URL: https://github.com/apache/hudi/pull/2262#issuecomment-732109119


   @n3nash  The hive/hudi table have contain partition 
`'year=2020/month=01/day=11'`, when you write a new partition 
`'year=2020/month=11/day=01'` to the table, it will throw error! Because in the 
getPartitionEvents method logic, 'year=2020/month=01/day=11' will transfer to 
be "01, 11, 2020" and 'year=2020/month=11/day=01' will transfer to be "01, 11, 
2020" too, So the new partition 'year=2020/month=11/day=01' is treated as a 
update event actually it is a new partition, and the coming processing will 
update the table partitions using "ALTER TABLE XX PARTITION 
(year='2020',month='11',day='01') SET LOCATION ..."! To update a not existed 
partition will throw error!


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

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


Reply via email to