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

Sergey Shelukhin commented on HIVE-19327:
-----------------------------------------

The result may be invalid if there are some invalid directories in the table 
(i.e. finalPaths is empty, but there are some aborted deltas, for example). 
This will just add them and read them as a single directory.
See CombinedHiveInputFormat for an example of what it does in this case...
{noformat}
      // If there are no inputs; the Execution engine skips the operator tree.
      // To prevent it from happening; an opaque  ZeroRows input is added here 
- when needed.
      result.add(
          new HiveInputSplit(new NullRowsInputFormat.DummyInputSplit(paths[0]), 
ZeroRowsInputFormat.class.getName()));
{noformat}
That will ensure only one row actually gets produced.

> qroupby_rollup_empty.q fails for insert-only transactional tables
> -----------------------------------------------------------------
>
>                 Key: HIVE-19327
>                 URL: https://issues.apache.org/jira/browse/HIVE-19327
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 3.0.0
>            Reporter: Steve Yeom
>            Assignee: Steve Yeom
>            Priority: Major
>             Fix For: 3.0.0
>
>         Attachments: HIVE-19327.01.patch
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to