Skip to content

[BEAM-9636] Using TimerFamily should also be considered as stateful.#11266

Closed
boyuanzz wants to merge 1 commit intoapache:masterfrom
boyuanzz:fix_timerfamily
Closed

[BEAM-9636] Using TimerFamily should also be considered as stateful.#11266
boyuanzz wants to merge 1 commit intoapache:masterfrom
boyuanzz:fix_timerfamily

Conversation

@boyuanzz
Copy link
Contributor

Please add a meaningful description for your change here


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

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • 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.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status Build Status
Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
--- Build Status
Build Status
Build Status
Build Status
Build Status
--- --- Build Status
XLang --- --- --- Build Status --- --- Build Status

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status
Build Status
Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@boyuanzz
Copy link
Contributor Author

Run Dataflow ValidatesRunner

@lukecwik
Copy link
Member

Did you want to update the validation in Python as well?

@boyuanzz
Copy link
Contributor Author

Did you want to update the validation in Python as well?

I think we only need to update the logic where the timer family is actual supported at this moment. But I'll double check.

@boyuanzz
Copy link
Contributor Author

Run Java PreCommit

@boyuanzz
Copy link
Contributor Author

Double checked python side. Since we don't have timer family support in python sdk, we should be fine for now.

r: @lukecwik

Copy link
Member

@lukecwik lukecwik left a comment

Choose a reason for hiding this comment

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

This change looks good and the Python functionality if needed can be added in a separate PR.

@lukecwik
Copy link
Member

Run Java PreCommit

4 similar comments
@boyuanzz
Copy link
Contributor Author

Run Java PreCommit

@boyuanzz
Copy link
Contributor Author

Run Java PreCommit

@boyuanzz
Copy link
Contributor Author

Run Java PreCommit

@boyuanzz
Copy link
Contributor Author

Run Java PreCommit

@boyuanzz
Copy link
Contributor Author

cc: @robertwb

@boyuanzz
Copy link
Contributor Author

boyuanzz commented Apr 1, 2020

Run Java PreCommit

@boyuanzz
Copy link
Contributor Author

boyuanzz commented Apr 1, 2020

Run Java PreCommit

signature.stateDeclarations().isEmpty()
&& signature.timerDeclarations().isEmpty()
&& signature.timerFamilyDeclarations().isEmpty(),
"SDFs should not have user state/timer.");
Copy link
Contributor

Choose a reason for hiding this comment

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

This does not seem the right place to prohibit this--we should just pass through what is present. (It is true that some runners may not support it (yet?).)

@boyuanzz
Copy link
Contributor Author

boyuanzz commented Apr 1, 2020

#11277 checked in.

@boyuanzz boyuanzz closed this Apr 1, 2020
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.

3 participants