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

Prasanth Jayachandran commented on HIVE-11118:
----------------------------------------------

[~sushanth] Thanks for looking into this. Yes. Its entirely possible that table 
desc is ORC and partition desc is of other formats. Hive supports that. I 
missed that part when I put up the patch. The check should use the partition 
desc for partitioned table instead of table desc throughout. Can you please 
create a separate bug for it? I will address it shortly.

> Load data query should validate file formats with destination tables
> --------------------------------------------------------------------
>
>                 Key: HIVE-11118
>                 URL: https://issues.apache.org/jira/browse/HIVE-11118
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Prasanth Jayachandran
>            Assignee: Prasanth Jayachandran
>             Fix For: 1.3.0, 2.0.0
>
>         Attachments: HIVE-11118.2.patch, HIVE-11118.3.patch, 
> HIVE-11118.4.patch, HIVE-11118.patch
>
>
> Load data local inpath queries does not do any validation wrt file format. If 
> the destination table is ORC and if we try to load files that are not ORC, 
> the load will succeed but querying such tables will result in runtime 
> exceptions. We can do some simple sanity checks to prevent loading of files 
> that does not match the destination table file format.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to