[ 
https://issues.apache.org/jira/browse/BEAM-12384?focusedWorklogId=603197&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-603197
 ]

ASF GitHub Bot logged work on BEAM-12384:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 27/May/21 17:59
            Start Date: 27/May/21 17:59
    Worklog Time Spent: 10m 
      Work Description: boyuanzz commented on pull request #14854:
URL: https://github.com/apache/beam/pull/14854#issuecomment-849828926


   > 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.
   
   I would say, let's unblock you first : ) Can you file a JIRA issue on this? 
I think we should find a ultimate solution there.


-- 
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: 603197)
    Time Spent: 2h 50m  (was: 2h 40m)

> 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 50m
>  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)

Reply via email to