You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Chamikara Jayalath (JIRA)" <ji...@apache.org> on 2016/11/01 17:45:59 UTC

[jira] [Resolved] (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:all-tabpanel ]

Chamikara Jayalath resolved BEAM-700.
-------------------------------------
    Resolution: Fixed

> 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)