You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Prasanth J (JIRA)" <ji...@apache.org> on 2014/09/22 23:38:34 UTC

[jira] [Commented] (HIVE-8178) OrcNewInputFormat::getSplits() calls OrcInputFormat.generateSplitsInfo twice

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

Prasanth J commented on HIVE-8178:
----------------------------------

+1

> OrcNewInputFormat::getSplits() calls OrcInputFormat.generateSplitsInfo twice
> ----------------------------------------------------------------------------
>
>                 Key: HIVE-8178
>                 URL: https://issues.apache.org/jira/browse/HIVE-8178
>             Project: Hive
>          Issue Type: Bug
>          Components: File Formats
>    Affects Versions: 0.14.0
>            Reporter: Gopal V
>            Assignee: Gopal V
>         Attachments: HIVE-8178.1.patch
>
>
> {code}
>  Configuration conf =
>         ShimLoader.getHadoopShims().getConfiguration(jobContext);
>     List<OrcSplit> splits =
>         OrcInputFormat.generateSplitsInfo(ShimLoader.getHadoopShims()
>         .getConfiguration(jobContext));
>     List<InputSplit> result = new ArrayList<InputSplit>();
>     for(OrcSplit split: OrcInputFormat.generateSplitsInfo(conf)) {
>       result.add(new OrcNewSplit(split));
>     }
> {code}
> The for loop does not iterate over the local variable.



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