You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Ahmet Altay (JIRA)" <ji...@apache.org> on 2017/06/11 02:15:19 UTC
[jira] [Resolved] (BEAM-2434) Pipeline options are not properly
validated
[ https://issues.apache.org/jira/browse/BEAM-2434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ahmet Altay resolved BEAM-2434.
-------------------------------
Resolution: Duplicate
Fix Version/s: Not applicable
Duplicate of https://issues.apache.org/jira/browse/BEAM-1318
> Pipeline options are not properly validated
> -------------------------------------------
>
> Key: BEAM-2434
> URL: https://issues.apache.org/jira/browse/BEAM-2434
> Project: Beam
> Issue Type: Bug
> Components: sdk-py
> Reporter: Bill Shirley
> Assignee: Ahmet Altay
> Priority: Minor
> Fix For: Not applicable
>
>
> Invalid argument names are not properly caught using the recommended way of parsing arguments.
> For example:
> {quote}
> parser = argparse.ArgumentParser()
> known_args, pipeline_args = parser.parse_known_args(argv)
> pipeline_options = PipelineOptions(pipeline_args)
> print(pipeline_options.display_data())
> p = beam.Pipeline(options=pipeline_options)
> {quote}
> If I call the script like this:
> {quote}
> python test_parallel.py --not_a_valid_arg=foo
> {quote}
> No error is raised. This is relatively error prone. For example, I was passing an incorrect Dataflow arg which was causing unexpected behavior and took me quite a while to figure out the root cause.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)