You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "xuzifu666 (via GitHub)" <gi...@apache.org> on 2024/06/24 11:54:33 UTC

[PR] [core] PartitionExpire drop partitions consisitent with hms drop [paimon]

xuzifu666 opened a new pull request, #3594:
URL: https://github.com/apache/paimon/pull/3594

   <!-- Please specify the module before the PR name: [core] ... or [flink] ... -->
   
   ### Purpose
   PartitionExpire drop partition atomicity when sync to hms.
   CREATE TABLE bdsp_test.paimon_mi_24(
   user_id STRING COMMENT '任务用到的库',
   used_table STRING COMMENT '任务用到的表',
   day STRING COMMENT '按天进行分区'
   )USING paimon
   PARTITIONED BY (day);
   
   insert into bdsp_test.paimon_mi_24
   select 'a', 'a_table', '2024-04-22';
   
   insert into bdsp_test.paimon_mi_24
   select 'b', 'a_table', '2024-09-22';
   
   select * from bdsp_test.paimon_mi_24 limit 10;
   
   CALL sys.expire_partitions(table => 'bdsp_test.paimon_mi_24', expiration_time => '1 d', timestamp_formatter => 'yyyy-MM-dd');
   
   If hive version is low which cannot compatible with paimon(such as follow),hms sync would error but paimon drop partition is ok
   
   <!-- Linking this pull request to the issue -->
   Linked issue: https://github.com/apache/paimon/issues/3593
   
   <!-- What is the purpose of the change -->
   
   ### Tests
   
   <!-- List UT and IT cases to verify this change -->
   
   ### API and Format
   
   <!-- Does this change affect API or storage format -->
   
   ### Documentation
   
   <!-- Does this change introduce a new feature -->
   


-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org