Thanatos9404 commented on PR #41569: URL: https://github.com/apache/beam/pull/41569#issuecomment-7112962223
Thanks, all four are in d680c1a, with tests. The sink uses `glob.escape`, `translate_pattern` escapes `[`, `&`, `~` and `|` inside a class, and `FileSystem.match` keeps `[*]`, `[?]` and `[[]` in the prefix using your regex, so escaped exact paths take the `exists()` short-circuit and the empty `beam-temp-*` directory is removed. Lineage now gets the unescaped glob. One note on `glob.escape`: Beam's matcher doesn't split off the drive, so for a `\\?\C:\...` path the `?` stays unescaped and the listed prefix becomes `\\`, whereas `re.sub` with the new prefix handling would keep the whole path. That fails the same way on master, so I kept `glob.escape`, but I can switch back if you'd rather. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
