in data_validation/cli_tools.py [0:0]
def _configure_schema_parser(schema_parser):
"""Configure arguments to run schema level validations."""
# Group optional arguments
optional_arguments = schema_parser.add_argument_group("optional arguments")
optional_arguments.add_argument(
"--exclusion-columns",
"-ec",
help="Comma separated list of columns 'col_a,col_b' to be excluded from the schema validation",
)
optional_arguments.add_argument(
"--allow-list",
"-al",
help="Comma separated list of datatype mappings due to incompatible datatypes in source and target. e.g.: decimal(12,2):decimal(38,9),!string:string,decimal(10-18,0):int64",
)
optional_arguments.add_argument(
"--allow-list-file",
"-alf",
help="YAML file containing default --allow-list mappings. Can be used in conjunction with --allow-list. e.g.: samples/allow_list/oracle_to_bigquery.yaml or gs://dvt-allow-list-files/oracle_to_bigquery.yaml. See example files in samples/allow_list/",
)
# Group required arguments
required_arguments = schema_parser.add_argument_group("required arguments")
required_arguments.add_argument(
"--tables-list",
"-tbls",
default=None,
required=True,
help="Comma separated tables list in the form 'schema.table=target_schema.target_table'",
)
_add_common_arguments(optional_arguments, required_arguments)