[
https://issues.apache.org/jira/browse/BEAM-7141?focusedWorklogId=256892&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-256892
]
ASF GitHub Bot logged work on BEAM-7141:
----------------------------------------
Author: ASF GitHub Bot
Created on: 10/Jun/19 15:13
Start Date: 10/Jun/19 15:13
Worklog Time Spent: 10m
Work Description: robertwb commented on pull request #8739: BEAM-7141:
add key value timer callback
URL: https://github.com/apache/beam/pull/8739#discussion_r292054782
##########
File path: sdks/python/apache_beam/runners/common.py
##########
@@ -183,6 +184,8 @@ def __init__(self, obj_to_invoke, method_name):
self.timestamp_arg_name = kw
elif v == core.DoFn.WindowParam:
self.window_arg_name = kw
+ elif v == core.DoFn.KeyParam:
Review comment:
The type inference machinery can tell us whether we certainly have a KV
type, whether we certainly do not have a KV type, or that it doesn't know
whether we have a KV type (e.g. all it knows is that it's a Python object).
I also like option 3, and don't think it would be that hard.
----------------------------------------------------------------
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: 256892)
Time Spent: 6h (was: 5h 50m)
> Expose kv and window parameters for on_timer
> --------------------------------------------
>
> Key: BEAM-7141
> URL: https://issues.apache.org/jira/browse/BEAM-7141
> Project: Beam
> Issue Type: Improvement
> Components: sdk-py-core
> Affects Versions: 2.12.0
> Reporter: Thomas Weise
> Assignee: Rakesh Kumar
> Priority: Major
> Time Spent: 6h
> Remaining Estimate: 0h
>
> We would like to have access to key and window inside the timer callback.
> Without, it is also difficult to debug. We run into this while working onĀ
> BEAM-7112
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)