You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "robertwb (via GitHub)" <gi...@apache.org> on 2023/09/12 18:27:01 UTC

[GitHub] [beam] robertwb opened a new issue, #28420: [Bug]: Type inference failure with closure creation.

robertwb opened a new issue, #28420:
URL: https://github.com/apache/beam/issues/28420

   ### What happened?
   
   Inferring the type of `lambda x: (x, (lambda: x)())` with, say, `int`, should return `Tuple[int, int]`, but instead returns `Tuple[type, type]`. 
   
   I suspect this is in an issue with load_closure storing the constant `int` rather than recording the stored value is of type `int`. 
   
   ### Issue Priority
   
   Priority: 3 (minor)
   
   ### Issue Components
   
   - [X] Component: Python SDK
   - [ ] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


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

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on issue #28420: [Bug]: Type inference failure with closure creation.

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on issue #28420:
URL: https://github.com/apache/beam/issues/28420#issuecomment-1721877831

   cc: @jrmccluskey 


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

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org