beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eugene Kirpichov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEAM-1225) Add a ToString transform in Java SDK
Date Wed, 28 Dec 2016 21:54:58 GMT

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

Eugene Kirpichov commented on BEAM-1225:
----------------------------------------

Why is it so common? The toString method is generally intended to produce human-readable debugging
output, rather than machine-readable output of a stable format, so I'm surprised people are
using it to produce output in a data processing pipeline.

> Add a ToString transform in Java SDK
> ------------------------------------
>
>                 Key: BEAM-1225
>                 URL: https://issues.apache.org/jira/browse/BEAM-1225
>             Project: Beam
>          Issue Type: Improvement
>            Reporter: Vikas Kedigehalli
>            Assignee: Vikas Kedigehalli
>            Priority: Minor
>
> It is a common pattern in BEAM pipelines to convert a PCollection<T> to PCollection<String>.
It involves the pipeline author having to write a SimpleFunction or DoFn that just calls the
'toString' method on each element and then use it through MapElements or a ParDo. Having a
ToString transform would help avoid writing this boilerplate code. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message