[ 
https://issues.apache.org/jira/browse/BEAM-5731?focusedWorklogId=198886&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-198886
 ]

ASF GitHub Bot logged work on BEAM-5731:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Feb/19 19:26
            Start Date: 14/Feb/19 19:26
    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_r256977563
 
 

 ##########
 File path: sdks/python/apache_beam/transforms/combiners_test.py
 ##########
 @@ -138,6 +152,8 @@ def test_top_key(self):
         ['aa', 'bbb', 'c', 'dddd'] | combine.Top.Of(3, key=len, reverse=True),
         [['c', 'aa', 'bbb']])
 
+  @unittest.skipIf(sys.version_info[0] > 1, 'deprecated comparator')
 
 Review comment:
   I believe you are right, updated the two uses of it here.
 
----------------------------------------------------------------
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: 198886)
            Time Spent: 10m
    Remaining Estimate: 0h

> 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: 10m
>  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)

Reply via email to