George Pearse
06/08/2022, 10:43 AMoptions=['initial_insert', 'update']
or
options=['raw','target']
So that you would have the config schema validation fail (or provide suggestions) before you have to raise a ValueError within a pipeline, unless I'm missing something?George Pearse
06/08/2022, 10:48 AMDescription: required arguments should not specify default values
George Pearse
06/08/2022, 10:49 AM'run_type': Field(str,
description='Insert type of the pipeline run, e.g. update or initial_insert',
options=['update','initial_insert'], # TODO: not currently supported but surprised by that
default_value='update',
is_required=True),
johann
06/08/2022, 3:11 PMThis is because the default value applies when an argument is not provided, which can’t occur for required argsCopy coderequired arguments should not specify default values
George Pearse
06/08/2022, 3:33 PMjohann
06/08/2022, 3:37 PMSelector
? https://docs.dagster.io/_apidocs/config#dagster.SelectorGeorge Pearse
06/08/2022, 3:45 PM