Skip to content

Conversation

@rohdesamuel
Copy link
Contributor

@rohdesamuel rohdesamuel commented Feb 13, 2020

This fixes the breakage from #10826.


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
Python Build Status
Build Status
Build Status
Build Status
--- Build Status
Build Status
Build Status
Build Status
--- --- Build Status
XLang --- --- --- 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.

Change-Id: Id7afe89f21221e7fa98ef9066805549493005bc9
@rohdesamuel
Copy link
Contributor Author

R: @davidyan74

@lukecwik
Copy link
Member

retest this please

@davidyan74
Copy link
Contributor

Looks like you need to run yapf? https://cwiki.apache.org/confluence/display/BEAM/Python+Tips
27

Change-Id: I8c92ab9bc98e1885a29f756ea8021c7fd2f3ee8a
@rohdesamuel
Copy link
Contributor Author

retest this please

1 similar comment
@lukecwik
Copy link
Member

retest this please

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.

LGTM, assuming tests pass

Thanks for the quick turnaround.

if record.HasField('processing_time_event'):
self._stream_times[tag] += timestamp.Duration(
micros=record.processing_time_event.advance_duration)
records.append((tag, record, self._stream_times[tag]))
Copy link
Member

Choose a reason for hiding this comment

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

this would be much more readable if we used typing.NamedTuple

@lukecwik
Copy link
Member

retest this please

@aaltay
Copy link
Member

aaltay commented Feb 14, 2020

For the failing pre-commit, I filed:

@lukecwik
Copy link
Member

Since this is a known break to python. Will merge now and please perform any clean-up in a follow-up PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants