[
https://issues.apache.org/jira/browse/BEAM-5731?focusedWorklogId=198888&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-198888
]
ASF GitHub Bot logged work on BEAM-5731:
----------------------------------------
Author: ASF GitHub Bot
Created on: 14/Feb/19 19:28
Start Date: 14/Feb/19 19:28
Worklog Time Spent: 10m
Work Description: aaltay commented on pull request #7842: [BEAM-5731]
Only accept key operator in Python 3.
URL: https://github.com/apache/beam/pull/7842#discussion_r256919397
##########
File path: sdks/python/apache_beam/transforms/ptransform_test.py
##########
@@ -1875,7 +1875,7 @@ def test_per_key_pipeline_checking_violated(self):
(self.p
| beam.Create(range(100)).with_output_types(int)
| 'Num + 1' >> beam.Map(lambda x: x + 1).with_output_types(int)
- | 'TopMod' >> combine.Top.PerKey(1, lambda a, b: a < b))
Review comment:
Should we leave some of these tests for the remaining py2 code? (For
Top.PerKey usage)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 198888)
Time Spent: 20m (was: 10m)
> Disable compare parameter in Top.Of() combiner when executing in Python 3.
> --------------------------------------------------------------------------
>
> Key: BEAM-5731
> URL: https://issues.apache.org/jira/browse/BEAM-5731
> Project: Beam
> Issue Type: Sub-task
> Components: sdk-py-core
> Reporter: Valentyn Tymofieiev
> Assignee: Robert Bradshaw
> Priority: Minor
> Labels: triaged
> Fix For: 2.11.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Removing `compare` parameter in Top.Of() will be a more consistent API with
> `sorted()` function in Python 3. We should also evaluate whether similar
> changes would be reasonable in other places in Beam SDK.
> See also: https://github.com/apache/beam/pull/6570#issuecomment-429176130.
> cc [~altay] [~juta] [~robertwb]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)