[ 
https://issues.apache.org/jira/browse/BEAM-2653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16096437#comment-16096437
 ] 

Ahmet Altay commented on BEAM-2653:
-----------------------------------

[~srfrnk] Could you describe what are you trying to accomplish?

{{OrderByKey}} in Java is a comparator. In Python we do not have a special 
{{KV}} class, instead there is {{(key, values)}} tuples. It is possible to 
write a simple function that compares two of such tuples by the key. Within the 
context of combiners, combiners can take a function like as argument for 
comparison.

> Python SDK missing OrderByKey
> -----------------------------
>
>                 Key: BEAM-2653
>                 URL: https://issues.apache.org/jira/browse/BEAM-2653
>             Project: Beam
>          Issue Type: New Feature
>          Components: beam-model, sdk-py
>         Environment: Python SDK
>            Reporter: Shahar Frank
>            Priority: Critical
>
> Trying to sort a collection by key.
> The Java SDK has this implementation: 
> https://beam.apache.org/documentation/sdks/javadoc/2.0.0/org/apache/beam/sdk/values/KV.OrderByKey.html
> But it seems to be missing in the Python SDK.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to