[ https://issues.apache.org/jira/browse/HIVE-24023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17183852#comment-17183852 ]
Karen Coppage edited comment on HIVE-24023 at 8/25/20, 8:14 AM: ---------------------------------------------------------------- Committed to master. Thanks for the review [~kuczoram]! was (Author: klcopp): Thanks for the review [~kuczoram]! > Hive parquet reader can't read files with length=0 > -------------------------------------------------- > > Key: HIVE-24023 > URL: https://issues.apache.org/jira/browse/HIVE-24023 > Project: Hive > Issue Type: Bug > Reporter: Karen Coppage > Assignee: Karen Coppage > Priority: Major > Labels: pull-request-available > Fix For: 4.0.0 > > Time Spent: 20m > Remaining Estimate: 0h > > Impala truncates insert-only parquet tables by creating a base directory > containing a completely empty file. > Hive throws an exception upon reading when it looks for metadata: > {code:java} > Error: java.io.IOException: java.lang.RuntimeException: <file> is not a > Parquet file (too small length: 0) (state=,code=0){code} > We can introduce a check for an empty file before Hive tries to read the > metadata. -- This message was sent by Atlassian Jira (v8.3.4#803005)