You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/11/21 05:04:00 UTC

[jira] [Work logged] (BEAM-7854) Reading files from local file system does not fully support glob

     [ https://issues.apache.org/jira/browse/BEAM-7854?focusedWorklogId=347165&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-347165 ]

ASF GitHub Bot logged work on BEAM-7854:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Nov/19 05:03
            Start Date: 21/Nov/19 05:03
    Worklog Time Spent: 10m 
      Work Description: kennknowles commented on issue #9197: [BEAM-7854] Resolve parent folder recursively in LocalFileSystem matc…
URL: https://github.com/apache/beam/pull/9197#issuecomment-556921396
 
 
   @lukecwik this one probably should have been squashed (just happened to come across these commits in the history debugging #10028)
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 347165)
    Time Spent: 4h 50m  (was: 4h 40m)

> Reading files from local file system does not fully support glob
> ----------------------------------------------------------------
>
>                 Key: BEAM-7854
>                 URL: https://issues.apache.org/jira/browse/BEAM-7854
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-core
>            Reporter: Tomer Zeltzer
>            Assignee: Tomer Zeltzer
>            Priority: Major
>             Fix For: 2.16.0
>
>          Time Spent: 4h 50m
>  Remaining Estimate: 0h
>
> Folder structure:   
> {code:java}
> A
>     B
>         a=100
>             data1
>                 file1.zst
>                 file2.zst 
>         a=999 
>             data2
>                 file6.zst
>         a=397
>             data3
>                 file7.zst{code}
>  
> Glob:
>  
> {code:java}
> /A/B/a=[0-9][0-9][0-9]/*/*{code}
> Code:  
>  
> {code:java}
> input.apply(Create.of(patterns))
>      .apply("Matching patterns", FileIO.matchAll())
>      .apply(FileIO.readMatches());
> {code}
>  
> input is of type PBegin.
> The above code matches 0 files even though, from the glob, its clear it should match all files. I suspect its because of line 227, where only the first parent folder is checked while is could be an asterix in a glob. I believe the right behaviour should be to check all parent folder and use the first one that exists.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)