You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2020/11/23 11:42:09 UTC

[GitHub] [hudi] linshan-ma commented on pull request #2262: [HUDI-1383] Modify hive partition synchronization

linshan-ma commented 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:
users@infra.apache.org