Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

talatuyarer
Copy link
Contributor

This PR modifies ParquetTable to intelligently resolve the file path before passing it to ParquetIO.

It uses FileSystems.match() to check if the provided LOCATION corresponds to a directory.

If it's a directory, a wildcard (*) is appended to the path to maintain the existing behavior of reading all files within it.

If it's not a directory (i.e., it's a file or a path that doesn't exist yet), it's treated as a user-provided pattern (either a glob or a single file path) and is used as-is.

fixes #20884


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

Copy link
Contributor

Assigning reviewers:

R: @chamikaramj for label java.

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@github-actions github-actions bot added website and removed website labels Jul 14, 2025
@talatuyarer talatuyarer requested a review from Abacn July 14, 2025 20:54
@talatuyarer talatuyarer requested a review from Abacn July 14, 2025 23:03
@github-actions github-actions bot removed the website label Jul 14, 2025
Copy link
Contributor

@Abacn Abacn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Abacn Abacn merged commit db3058a into apache:master Jul 15, 2025
22 checks passed
talatuyarer added a commit to talatuyarer/beam that referenced this pull request Jul 15, 2025
…ache#35582)

* Add glob and single file support to ParquetTable LOCATION

* not rely on FileSystems.match call to resolveFilePattern. Added test and documenration

* CHANGES.md update for behaviour change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ParquetTableProvider doesn't support globs or path to file in LOCATION
2 participants