You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/11/01 06:04:58 UTC

[jira] [Commented] (BEAM-700) Update FileBasedSource to use sampling when estimating size of file patterns

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

ASF GitHub Bot commented on BEAM-700:
-------------------------------------

Github user chamikaramj closed the pull request at:

    https://github.com/apache/incubator-beam/pull/1235


> Update FileBasedSource to use sampling when estimating size of file patterns
> ----------------------------------------------------------------------------
>
>                 Key: BEAM-700
>                 URL: https://issues.apache.org/jira/browse/BEAM-700
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py
>            Reporter: Chamikara Jayalath
>            Assignee: Chamikara Jayalath
>             Fix For: Not applicable
>
>
> Currently when estimating size of file patterns we estimate size of each file and add the sizes up [1]. This can be very inefficient for file patterns that expand into a large number of files. We should update FIleBasedSource to use sampling similar to Java SDK [2].
> [1]https://github.com/apache/incubator-beam/blob/python-sdk/sdks/python/apache_beam/io/filebasedsource.py#L120
> [2] https://github.com/apache/incubator-beam/blob/python-sdk/sdks/java/core/src/main/java/org/apache/beam/sdk/io/FileBasedSource.java#L204



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