[
https://issues.apache.org/jira/browse/BEAM-6695?focusedWorklogId=236636&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-236636
]
ASF GitHub Bot logged work on BEAM-6695:
----------------------------------------
Author: ASF GitHub Bot
Created on: 02/May/19 23:18
Start Date: 02/May/19 23:18
Worklog Time Spent: 10m
Work Description: aaltay commented on issue #8206: [BEAM-6695] Latest
PTransform for Python SDK
URL: https://github.com/apache/beam/pull/8206#issuecomment-488865818
Try this instead:
elem_list = [('a', TimestampedValue(1, 300)), ('b', TimestampedValue(1,
100)), ('a', TimestampedValue(2, 200))]
In your example, the inputs you are passing are not in type Tuple[K, V]. For
example, whatever test you come up with, it should be valid to do
Create(elem_list) | GroupByKey(), and that input will work on PerKey transform.
I will defer to @robinyqiu for the remainder of the review.
----------------------------------------------------------------
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 236636)
Time Spent: 7h 40m (was: 7.5h)
> Latest transform for Python SDK
> -------------------------------
>
> Key: BEAM-6695
> URL: https://issues.apache.org/jira/browse/BEAM-6695
> Project: Beam
> Issue Type: New Feature
> Components: sdk-py-core
> Reporter: Ahmet Altay
> Assignee: Tanay Tummalapalli
> Priority: Minor
> Time Spent: 7h 40m
> Remaining Estimate: 0h
>
> Add a PTransform} and Combine.CombineFn for computing the latest element in a
> PCollection.
> It should offer the same API as its Java counterpart:
> https://github.com/apache/beam/blob/11a977b8b26eff2274d706541127c19dc93131a2/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/Latest.java
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)