Skip to content

[Bug]: Prism raises error when running a Python SDK pipeline with Create transform #34564

Open
@shunping

Description

@shunping

What happened?

When running a Python pipeline with Create transform on prism, prism raises an error.

with beam.Pipeline(options=options) as p:
  _ = (p | beam.Create([1]) | beam.Map(print))

Prism error:

"found 1 uses of features unimplemented in prism in job job:
unsupported feature "PTransform.Spec.Urn" set with value beam:transform:pickled_python:v1 Create/MaybeReshuffle"

The problem is related to MaybeReshuffle at https://github.com/apache/beam/blob/v2.64.0/sdks/python/apache_beam/transforms/core.py#L3971, where the exact same input pcollection is returned as the output pcollection, leading to an empty transform.

Here is another simple example to trigger the problem.

class EmptyTransform(beam.PTransform):
  def expand(self, input):
    return input

with beam.Pipeline(options=options) as p:
  _ = (p | beam.Impulse() | EmptyTransform() | beam.Map(print))

Prism error:

"found 1 uses of features unimplemented in prism in job job:
unsupported feature "PTransform.Spec.Urn" set with value beam:transform:pickled_python:v1 EmptyTransform"

Here is the proto of that transform in the pipeline proto:

Image

Issue Priority

Priority: 2 (default / most bugs should be filed as P2)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Infrastructure
  • 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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions