flytekitplugins.dbt.BaseDBTInput¶
- class flytekitplugins.dbt.BaseDBTInput(project_dir, profiles_dir, profile, target=None, output_path='target', ignore_handled_error=False, flags=None)[source]¶
Base class for DBT Task Input.
- Parameters:
- profile¶
Profile name to be used for the DBT task. It will override value in
dbt_project.yml
.- Type:
- output_path¶
Path to directory where compiled files (e.g. models) will be written when running the task (default=target).
- Type:
- ignore_handled_error¶
Ignore handled error (exit code = 1) returned by DBT, see https://docs.getdbt.com/reference/exit-codes (default=False).
- Type:
- flags¶
Dictionary containing CLI flags to be added to the
dbt run
command (default=False).- Type:
Methods
- classmethod from_dict(kvs, *, infer_missing=False)¶
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)¶
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)¶
- to_args()[source]¶
Convert the instance of BaseDBTInput into list of arguments.
- Returns:
List of arguments.
- Return type:
List[str]
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)¶
Attributes
- dataclass_json_config = None
- flags: dict = None
- ignore_handled_error: bool = False
- output_path: str = 'target'
- target: str = None
- project_dir: str
- profiles_dir: str
- profile: str