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

Luke Cwik edited comment on BEAM-8172 at 2/6/20 1:19 AM:
---------------------------------------------------------

The display_data on the PTransform is specifically meant to enable this. Please 
use that instead. We can add display_data for other types where it would be 
useful.


was (Author: lcwik):
The display_data on the PTransform is specifically meant to enable this. Please 
use that instead.

> Add a label field to FunctionSpec proto
> ---------------------------------------
>
>                 Key: BEAM-8172
>                 URL: https://issues.apache.org/jira/browse/BEAM-8172
>             Project: Beam
>          Issue Type: Improvement
>          Components: beam-model
>            Reporter: Chad Dombrova
>            Assignee: Chad Dombrova
>            Priority: Major
>             Fix For: Not applicable
>
>
> The FunctionSpec payload is opaque outside of the native environment, which 
> can make debugging pipeline protos difficult.  It would be very useful if the 
> FunctionSpec had an optional human readable "label", for debugging and 
> presenting in UIs and error messages.
> For example, in python, if the payload is an instance of a class, we could 
> attempt to provide a string that represents the dotted path to that class, 
> "mymodule.MyClass".  In the case of coders, we could use the label to hold 
> the type hint:  "Optional[Iterable[mymodule.MyClass]]".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to