tvalentyn commented on a change in pull request #14634:
URL: https://github.com/apache/beam/pull/14634#discussion_r631418711



##########
File path: sdks/python/apache_beam/examples/complete/top_wikipedia_sessions.py
##########
@@ -93,9 +93,8 @@ def expand(self, pcoll):
         | 'TopPerMonthWindow' >> beam.WindowInto(
             FixedWindows(size=THIRTY_DAYS_IN_SECONDS))
         | 'Top' >> combiners.core.CombineGlobally(
-            combiners.TopCombineFn(
-                10,
-                lambda first, second: first[1] < 
second[1])).without_defaults())
+            combiners.TopCombineFn(n=10,
+                                   key=lambda x: x[1])).without_defaults())

Review comment:
       rebase and force-push is fine. Feel free to squash all commits since 
they have been reviewed and you are not adding new code.




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to