[ 
https://issues.apache.org/jira/browse/HIVE-28757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18098208#comment-18098208
 ] 

Feng Liu commented on HIVE-28757:
---------------------------------

The master draft PR is now up:
https://github.com/apache/hive/pull/6628

It covers both the single-partition and batch dynamic-partition load paths, and 
adds the metastore-side guard for alterPartition/alterPartitions.

Local validation:
- TestHiveLoadPartitionKeepExisting: 5 tests passed
- TestAlterPartitions: 154 tests passed
- the related Maven reactor built successfully with JDK 21

For anyone who needs to backport this to 3.1.2, the clean branch based on the 
official rel/release-3.1.2 source is here:
https://github.com/myg821561935/hive-2.2/tree/codex/hive-28757-partition-create-time-3.1.2

> The inserted dynamic partitions loss createTime
> -----------------------------------------------
>
>                 Key: HIVE-28757
>                 URL: https://issues.apache.org/jira/browse/HIVE-28757
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 3.1.3
>            Reporter: FangBO
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: image.png
>
>
> The inserted dynamic partitions loss createTime。
>  
> {code:java}
> // code placeholder
> create table p (id bigint) partitioned by (ds string);
> create table src (id bigint, ds string);
> insert into src values(1, '00');
> insert overwrite table p partition(ds) select id,ds from src;{code}
> After the operation, the inserted partition does not have createTime.
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to