[
https://issues.apache.org/jira/browse/HIVE-11118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14602302#comment-14602302
]
Gunther Hagleitner commented on HIVE-11118:
-------------------------------------------
+1. You could use multiple exception handlers instead of the if-then-else. I
also think [~xuefuz] is right, but that probably requires introducing a new
interface that can check magic byte for participating formats, etc. Maybe
create a follow-up jira?
> Load data query should valide 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
> Attachments: HIVE-11118.2.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)