Skip to content

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

@robertwb

Description

@robertwb

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions