-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Beam-9679] Add Core Transforms section / ParDo lesson to the Go SDK katas #11564
[Beam-9679] Add Core Transforms section / ParDo lesson to the Go SDK katas #11564
Conversation
Run RAT Precommit |
Run Go 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.
Thanks for the addition of the new lessons. I've added some comments.
learning/katas/go/Core Transforms/Map/MapElements/pkg/task/task.go
Outdated
Show resolved
Hide resolved
learning/katas/go/Core Transforms/Map/MapElements/pkg/task/task.go
Outdated
Show resolved
Hide resolved
learning/katas/go/Core Transforms/Map/MapElements/pkg/task/task.go
Outdated
Show resolved
Hide resolved
Run RAT Precommit |
Run Go 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.
Thanks Damon for incorporating the changes. Just a few additional minor comments.
learning/katas/go/Core Transforms/Map/ParDo struct/pkg/task/task.go
Outdated
Show resolved
Hide resolved
Run RAT 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.
The learning/katas/go/Core Transforms/Map/ParDo struct/pkg/task/task.go seems to have an issue now.
I suspect the directory needs to be renamed accordingly.
learning/katas/go/Core Transforms/Map/ParDo struct/pkg/task/task.go
Outdated
Show resolved
Hide resolved
Thank you @henryken for your patience. I found the course preview function in IntelliJ Edu inconsistent between GoLand and IntelliJ. In my regular testing using GoLand, I load by first closing the project and reopening via navigation to the original folder. If I open the project through any other means in GoLand, when activating the course preview, it seems to pull from a cached source. I haven't completely figured out the issue with GoLand. IntelliJ seems to work as expected. I deleted the entire |
Retest this please |
(sadly, only comitters can trigger the tests even after the first time. Your commands were correct) |
Is this addressed to me? Would you like me to retest something? That's "addressed" to the jenkins bot to retest the PR via whatever automated selection of tests it requires. Since the bot is particular, I needed to separate it from my other comment so it would work. |
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.
My only question might be better answred by @henryken : Are the Spaces in the directory names going to cause problems with katas? Are they intended to be like that vs with underscores instead of spaces?
Otherwise, just a few small things, and I can merge this.
|
||
<div class="hint"> | ||
Use <a href="https://godoc.org/github.com/apache/beam/sdks/go/pkg/beam#ParDo"> | ||
ParDo</a> |
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.
Consider using the qualifed import name, like they'd see in their Go code (eg. beam.ParDo) , rather than just the single method. It would look odd to other languages, but the generally explicit package/provenance of identifiers is a hallmark of Go.
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.
@lostluck Do you mean this? If so, I could check across the various tasks of the existing katas to make sure its consistent.
<div class="hint">
Use <a href="https://godoc.org/github.com/apache/beam/sdks/go/pkg/beam#ParDo">
beam.ParDo</a>
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.
I do!
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.
Rather, I do. But I can merge this in as is and the change can happen in another PR or it can happen this PR. Whichever you prefer.
Sorry for the delay in getting back to this.
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.
I created BEAM-9928 so this is not forgotten. My vote is to merge the request.
performs some processing function (your user code) on that element, and emits zero, one, or multiple elements to an | ||
output PCollection. | ||
|
||
**Kata:** Please write a simple ParDo that maps the input element by multiplying it by 10. |
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.
A possible adjacent task/step is converting a func DoFn into a Structural DoFn. Yes, this is relatively simple, but from a learning standpoint, it makes the distinction pretty clear, while not asking users too much else that might conflate with it. (eg. Getting the wrong idea that funcs must be 1:1 vs 1:many/none, vs structs etc).
Not necessary to do it in this PR.
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.
@lostluck, the space will not create any problem. It is friendlier for the learner to see the lesson and task names in the natural way versus using underscore name.
Co-authored-by: Robert Burke <lostluck@users.noreply.github.com>
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.
This LGTM now.
Please wait for the course uploading before merging this PR. |
@henryken and @lostluck I updated the Stepik course and commited the |
Awesome! This PR can be merged now. Thanks @damondouglas! |
Retest this please |
This pull request adds a section related to Core Transforms with one Map transforms lesson to the Go SDK katas. It patterns after the existing Java katas:
I would like to request @henryken and @lostluck to review this pull request. Thank you for allowing me to be part of this project.
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username
).[BEAM-XXX] Fixes bug in ApproximateQuantiles
, where you replaceBEAM-XXX
with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.CHANGES.md
with noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
Post-Commit Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.