beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ahmet Altay (JIRA)" <>
Subject [jira] [Commented] (BEAM-2653) Python SDK missing OrderByKey
Date Fri, 21 Jul 2017 16:20:00 GMT


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:
>             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:
> But it seems to be missing in the Python SDK.

This message was sent by Atlassian JIRA

View raw message