beam-commits mailing list archives

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


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:
>             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

View raw message