-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add skip header lines in TextIO #28502
Conversation
Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment |
Run Java_GCP_IO_Direct PreCommit |
Run Java PreCommit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good day @gudfhr95, Thank you so much for your contribution! I would like to propose the following change to your PR.
Instead of making changes to TextIO, FileIO.ReadableFile's readFullyAsUTF8String() method would still fulfill #17990's feature request. I would like to propose that this PR add a new method such as: public String readFullyAsUTF8String(int skipHeaderLines) throws IOException {}
What do you think of this idea? Your contribution and opinion is important.
Thank you, again for your contribution!
Hello, @damondouglas. I really appreciate for your review and your suggestion. As far as I understand, even though I found every occurrences of |
Hello @gudfhr95, It's nice to hear from you and thank you for your response. I just created this example gist that uses
https://gist.github.com/damondouglas/84c34469d4a6d7b7483468659482855c. Note you can copy the entire contents of the gist and replace the text of https://play.beam.apache.org/ and run on its own. However, I can see this code in a new
|
Ah, I see. Thank you for your detailed examples. Then, I think that I should revert my previous commits and create new PR only containing Again, thank you for your kind explanation @damondouglas! |
@gudfhr95 Take your time. Again, we are very grateful for your contribution and thank you again for listening to my feedback. I look forward to talking with you soon. |
Fixes #17990
Changes
withSkipHeaderLines
isSplittable
ofTextSource
whenskipHeaderLines
is greater than 0Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
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, commentfixes #<ISSUE NUMBER>
instead.CHANGES.md
with noteworthy changes.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)
See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.