Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Type inference failure with closure creation. #28420

Open
1 of 15 tasks
robertwb opened this issue Sep 12, 2023 · 1 comment
Open
1 of 15 tasks

[Bug]: Type inference failure with closure creation. #28420

robertwb opened this issue Sep 12, 2023 · 1 comment

Comments

@robertwb
Copy link
Contributor

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

  • 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
@tvalentyn
Copy link
Contributor

cc: @jrmccluskey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants