[ 
https://issues.apache.org/jira/browse/HIVE-26231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sourabh Badhya updated HIVE-26231:
----------------------------------
    Description: 
HIVE-24738 introduced a bug which wont allow generation of insert events when 
dynamic partition insert is done on existing partitions.

The newFiles list used is null because of the following condition - 
[https://github.com/apache/hive/blob/8077bb118cb418cae24a46f7155c481bf893da99/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java#L3159]

The newFiles is assigned to empty list only when new partitions are created and 
is not assigned when insert is done on existing partitions. This affects insert 
events generation for external tables.

  was:HIVE-24738 introduced a bug which wont allow generation of insert events 
on existing partitions


> Generate insert notification events when dynamic partition insert is done on 
> existing partitions
> ------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-26231
>                 URL: https://issues.apache.org/jira/browse/HIVE-26231
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>            Reporter: Sourabh Badhya
>            Assignee: Sourabh Badhya
>            Priority: Major
>
> HIVE-24738 introduced a bug which wont allow generation of insert events when 
> dynamic partition insert is done on existing partitions.
> The newFiles list used is null because of the following condition - 
> [https://github.com/apache/hive/blob/8077bb118cb418cae24a46f7155c481bf893da99/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java#L3159]
> The newFiles is assigned to empty list only when new partitions are created 
> and is not assigned when insert is done on existing partitions. This affects 
> insert events generation for external tables.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to