[
https://issues.apache.org/jira/browse/BEAM-12384?focusedWorklogId=602353&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-602353
]
ASF GitHub Bot logged work on BEAM-12384:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 26/May/21 13:59
Start Date: 26/May/21 13:59
Worklog Time Spent: 10m
Work Description: iemejia commented on pull request #14854:
URL: https://github.com/apache/beam/pull/14854#issuecomment-848793500
I cherry-picked @boyuanzz commit from the other PR notice however that I
could not get the Type to be preserved after the two DoFns are applied.
In `OutputSingleSource` I was able to export correctly the type by overriding
```java
@Override
public TypeDescriptor<SourceT> getOutputTypeDescriptor() {
return (TypeDescriptor<SourceT>)
new TypeDescriptor<Source<T>>(getClass()) {}.where(
new TypeParameter<T>() {},
source.getOutputCoder().getEncodedTypeDescriptor());
}
```
but in the second DoFn `BoundedSourceAsSDFWrapperFn`
I did not find a way to recover the real type of T when overwriting
`getOutputTypeDescriptor`. Any suggestion for this? Otherwise I suppose the
solution on Read is good enough.
--
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: 602353)
Time Spent: 2h 40m (was: 2.5h)
> Read.Bounded typeDescriptor is lost after move to SDF
> -----------------------------------------------------
>
> Key: BEAM-12384
> URL: https://issues.apache.org/jira/browse/BEAM-12384
> Project: Beam
> Issue Type: Improvement
> Components: sdk-java-core
> Reporter: Ismaël Mejía
> Assignee: Ismaël Mejía
> Priority: P2
> Fix For: 2.31.0
>
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> While debugging a downstream transform after Read I notice that the
> typeDescriptor information was not set up correctly on the Read transform
--
This message was sent by Atlassian Jira
(v8.3.4#803005)