You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "twosom (via GitHub)" <gi...@apache.org> on 2024/08/14 16:47:14 UTC
[PR] added methods for support ValueProvider [beam]
twosom opened a new pull request, #32181:
URL: https://github.com/apache/beam/pull/32181
**Please** add a meaningful description for your change here
fixes #19378
This PR contains thease changes
- add `ValueProvider` methods for `ConnectionConfiguration`
------------------------
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](https://www.apache.org/licenses/icla.pdf).
See the [Contributor Guide](https://beam.apache.org/contribute) for more tips on [how to make review process smoother](https://github.com/apache/beam/blob/master/CONTRIBUTING.md#make-the-reviewers-job-easier).
To check the build health, please visit [https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md](https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md)
GitHub Actions Tests Status (on master branch)
------------------------------------------------------------------------------------------------
[](https://github.com/apache/beam/actions?query=workflow%3A%22Build+python+source+distribution+and+wheels%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Python+Tests%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Java+Tests%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Go+tests%22+branch%3Amaster+event%3Aschedule)
See [CI.md](https://github.com/apache/beam/blob/master/CI.md) for more information about GitHub Actions CI or the [workflows README](https://github.com/apache/beam/blob/master/.github/workflows/README.md) to see a list of phrases to trigger workflows.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] added methods for support ValueProvider in `MqttIO` [beam]
Posted by "robertwb (via GitHub)" <gi...@apache.org>.
robertwb commented on PR #32181:
URL: https://github.com/apache/beam/pull/32181#issuecomment-2364020076
> > Now that we have flex templates, we prefer not propagating the ValueProvider boilerplate elsewhere without good reason, and advise flex templates for any template use that uses non-ValueProvider-enabled features. Is there a reason you cannot use flex templates?
>
> Flex templates require a Docker image to be built, which is more complex than uploading a JAR file to Google Storage. For our company, it's easier to upload the classic templates with a single Gradle task than to use the artifact registry.
This is good feedback. My reading of https://cloud.google.com/dataflow/docs/guides/templates/using-flex-templates#build-template is that you don't have to build the docker image yourself, just provide the jar and other metadata (just like classic templates). Hopefully it shouldn't be too hard to package this gcloud command in a gradle task directly.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] added methods for support ValueProvider in `MqttIO` [beam]
Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on PR #32181:
URL: https://github.com/apache/beam/pull/32181#issuecomment-2358714930
Hi, is there a requirement in your use case that needs to serve ValueProvider? In the past ValueProviders were mainly used in Dataflow classic templates, which is superceded by flex templates that no longer need ValueProvider
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] added methods for support ValueProvider in `MqttIO` [beam]
Posted by "twosom (via GitHub)" <gi...@apache.org>.
twosom commented on PR #32181:
URL: https://github.com/apache/beam/pull/32181#issuecomment-2362501762
This may be specific to our company. I can't guarantee it's the same for other companies.
I agree that we shouldn't propagate ValueProviders without a good reason.
I'll close the PR for now, but I still think users should have a choice.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] added methods for support ValueProvider in `MqttIO` [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #32181:
URL: https://github.com/apache/beam/pull/32181#issuecomment-2289416412
Assigning reviewers. If you would like to opt out of this review, comment `assign to next reviewer`:
R: @robertwb for label java.
R: @johnjcasey for label io.
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).
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] added methods for support ValueProvider in `MqttIO` [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #32181:
URL: https://github.com/apache/beam/pull/32181#issuecomment-2310062120
Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment `assign to next reviewer`:
R: @Abacn for label java.
R: @Abacn for label io.
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)
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] added methods for support ValueProvider in `MqttIO` [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #32181:
URL: https://github.com/apache/beam/pull/32181#issuecomment-2350970271
Reminder, please take a look at this pr: @robertwb @chamikaramj
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] added methods for support ValueProvider in `MqttIO` [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #32181:
URL: https://github.com/apache/beam/pull/32181#issuecomment-2333922650
Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment `assign to next reviewer`:
R: @robertwb for label java.
R: @chamikaramj for label io.
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)
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] added methods for support ValueProvider in `MqttIO` [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #32181:
URL: https://github.com/apache/beam/pull/32181#issuecomment-2326370979
Reminder, please take a look at this pr: @Abacn @Abacn
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] added methods for support ValueProvider in `MqttIO` [beam]
Posted by "twosom (via GitHub)" <gi...@apache.org>.
twosom closed pull request #32181: added methods for support ValueProvider in `MqttIO`
URL: https://github.com/apache/beam/pull/32181
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] added methods for support ValueProvider in `MqttIO` [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #32181:
URL: https://github.com/apache/beam/pull/32181#issuecomment-2304520498
Reminder, please take a look at this pr: @robertwb @johnjcasey
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] added methods for support ValueProvider in `MqttIO` [beam]
Posted by "robertwb (via GitHub)" <gi...@apache.org>.
robertwb commented on PR #32181:
URL: https://github.com/apache/beam/pull/32181#issuecomment-2362382834
Now that we have flex templates, we prefer not propagating the ValueProvider boilerplate elsewhere without good reason, and advise flex templates for any template use that uses non-ValueProvider-enabled features. Is there a reason you cannot use flex templates?
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] added methods for support ValueProvider in `MqttIO` [beam]
Posted by "twosom (via GitHub)" <gi...@apache.org>.
twosom commented on PR #32181:
URL: https://github.com/apache/beam/pull/32181#issuecomment-2362497405
> Now that we have flex templates, we prefer not propagating the ValueProvider boilerplate elsewhere without good reason, and advise flex templates for any template use that uses non-ValueProvider-enabled features. Is there a reason you cannot use flex templates?
Flex templates require a Docker image to be built, which is more complex than uploading a JAR file to Google Storage. For our company, it's easier to upload the classic templates with a single Gradle task than to use the artifact registry.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] added methods for support ValueProvider in `MqttIO` [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #32181:
URL: https://github.com/apache/beam/pull/32181#issuecomment-2358305899
Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment `assign to next reviewer`:
R: @Abacn for label java.
R: @ahmedabu98 for label io.
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)
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] added methods for support ValueProvider in `MqttIO` [beam]
Posted by "twosom (via GitHub)" <gi...@apache.org>.
twosom commented on PR #32181:
URL: https://github.com/apache/beam/pull/32181#issuecomment-2364036920
> > > Now that we have flex templates, we prefer not propagating the ValueProvider boilerplate elsewhere without good reason, and advise flex templates for any template use that uses non-ValueProvider-enabled features. Is there a reason you cannot use flex templates?
> >
> >
> > Flex templates require a Docker image to be built, which is more complex than uploading a JAR file to Google Storage. For our company, it's easier to upload the classic templates with a single Gradle task than to use the artifact registry.
>
> This is good feedback. My reading of https://cloud.google.com/dataflow/docs/guides/templates/using-flex-templates#build-template is that you don't have to build the docker image yourself, just provide the jar and other metadata (just like classic templates). Hopefully it shouldn't be too hard to package this gcloud command in a gradle task directly.
@robertwb
Thanks for sharing this article.
It will help my team migrate to Flex Templates.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] added methods for support ValueProvider in `MqttIO` [beam]
Posted by "twosom (via GitHub)" <gi...@apache.org>.
twosom commented on PR #32181:
URL: https://github.com/apache/beam/pull/32181#issuecomment-2361267088
> Hi, is there a requirement in your use case that needs to serve ValueProvider? In the past ValueProviders were mainly used in Dataflow classic templates, which is superceded by flex templates that no longer need ValueProvider
@Abacn
Hello, thank you for your comment.
We are still using the classic template with ValueProvider and we are planning to move to the flex template in the future.
In my opinion, once we use flex templates, we may not need ValueProviders, but it would be nice to at least give users the option to use the existing classic templates.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org