apache / apache/beam

Improve error message when adding a PTransform with a name that already exists in the pipeline

Open
#19,965 0 comments 0 reactions 0 assignees View on GitHub
core improvement java P3 python
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
2d 2h
Merged PRs (30d)
205

Description

Currently, when trying to apply a PTransform with a name that already exists in the pipeline, it returns a confusing error:

Transform "XXX" does not have a stable unique label. This will prevent updating of pipelines. To apply a transform with a specified label write pvalue | "label" \>\> transform

We'd like to improve this error message.

Imported from Jira [BEAM-8415](https://issues.apache.org/jira/browse/BEAM-8415). Original Jira may contain additional context.
Reported by: davidyan.

Contributor guide

Open the contributing guide

Research direction

No source file or test is named in the issue. Start by locating the code that emits the quoted “stable unique label” message, then read the original BEAM-8415 context and reproduce the duplicate-name case; done means the error clearly explains the naming conflict.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-engineering
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.