apache / apache/beam

PipelineOptions subclasses defined in the main session could be duplicated

Open
#18,197 0 comments 0 reactions 0 assignees View on GitHub
bug core P3 python
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

Duplication is caused as a result of the save_main_session option.

This also breaks argparse because same options will be defined multiple times.

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

Contributor guide

Open the contributing guide

Research direction

Start by tracing save_main_session handling for PipelineOptions subclasses defined in the main session, then inspect how argparse options are registered. Reproduce the case where subclasses are duplicated and the same options are defined multiple times. Done means the duplication and resulting argparse failure no longer occur.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.