Skip to content

[Bug]: Beam Yaml Jinja option may conflict with well known Pipeline option #37475

@Abacn

Description

@Abacn

What happened?

Saying I have a Yaml pipeline has a Jinja vairable 'projectId', it may conflicts with the well known pipeline option project due to here

jinja_variable_parser = argparse.ArgumentParser()

jinja_variable_parser may "unambiguously" parsed "--project" as "--projectId", causing --project pipeline option treated as a jinja variable and removed from pipeline options passing to pipeline construction

This can cause weird error ValueError: Pipeline has validations errors: Missing required option: project. when submitting pipeline to Dataflow

We should set allow_abbrev to False. But this still doesn't fully avoid confliction when a jinja variable also named project

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

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions