The page you navigated to does not exist, so we brought you to the closest page to it.
flytekitplugins.dbt.schema
flytekitplugins.dbt.schema
Base class for DBT Task Input.
project_dir : str
Path to directory containing the DBT dbt_project.yml.
profiles_dir : str
Path to directory containing the DBT profiles.yml.
profile : str
Profile name to be used for the DBT task. It will override value in dbt_project.yml.
target : str
Target to load for the given profile (default=None).
output_path : str
Path to directory where compiled files (e.g. models) will be written when running the task (default=target).
ignore_handled_error : bool
Ignore handled error (exit code = 1) returned by DBT, see
https://docs.getdbt.com/reference/exit-codes (default=False).
flags : dict
Dictionary containing CLI flags to be added to the dbt run command (default=False).
class BaseDBTInput (
project_dir : str ,
profiles_dir : str ,
profile : str ,
target : str ,
output_path : str ,
ignore_handled_error : bool ,
flags : dict ,
)
Parameter
Type
Description
project_dir
str
profiles_dir
str
profile
str
target
str
output_path
str
ignore_handled_error
bool
flags
dict
def from_dict (
kvs : typing . Union [ dict , list , str , int , float , bool , NoneType ],
infer_missing ,
) -> ~ A
Parameter
Type
Description
kvs
typing.Union[dict, list, str, int, float, bool, NoneType]
infer_missing
def from_json (
s : typing . Union [ str , bytes , bytearray ],
parse_float ,
parse_int ,
parse_constant ,
infer_missing ,
kw ,
) -> ~ A
Parameter
Type
Description
s
typing.Union[str, bytes, bytearray]
parse_float
parse_int
parse_constant
infer_missing
kw
def schema (
infer_missing : bool ,
only ,
exclude ,
many : bool ,
context ,
load_only ,
dump_only ,
partial : bool ,
unknown ,
) -> SchemaType [ A ]
Parameter
Type
Description
infer_missing
bool
only
exclude
many
bool
context
load_only
dump_only
partial
bool
unknown
Convert the instance of BaseDBTInput into list of arguments.
List[str]
List of arguments.
def to_dict (
encode_json ,
) -> typing . Dict [ str , typing . Union [ dict , list , str , int , float , bool , NoneType ]]
Parameter
Type
Description
encode_json
def to_json (
skipkeys : bool ,
ensure_ascii : bool ,
check_circular : bool ,
allow_nan : bool ,
indent : typing . Union [ int , str , NoneType ],
separators : typing . Tuple [ str , str ],
default : typing . Callable ,
sort_keys : bool ,
kw ,
) -> str
Parameter
Type
Description
skipkeys
bool
ensure_ascii
bool
check_circular
bool
allow_nan
bool
indent
typing.Union[int, str, NoneType]
separators
typing.Tuple[str, str]
default
typing.Callable
sort_keys
bool
kw
Base class for output of DBT task.
command : str
Complete CLI command and flags that was executed by DBT Task.
exit_code : int
Exit code returned by DBT CLI.
class BaseDBTOutput (
command : str ,
exit_code : int ,
)
Parameter
Type
Description
command
str
exit_code
int
def from_dict (
kvs : typing . Union [ dict , list , str , int , float , bool , NoneType ],
infer_missing ,
) -> ~ A
Parameter
Type
Description
kvs
typing.Union[dict, list, str, int, float, bool, NoneType]
infer_missing
def from_json (
s : typing . Union [ str , bytes , bytearray ],
parse_float ,
parse_int ,
parse_constant ,
infer_missing ,
kw ,
) -> ~ A
Parameter
Type
Description
s
typing.Union[str, bytes, bytearray]
parse_float
parse_int
parse_constant
infer_missing
kw
def schema (
infer_missing : bool ,
only ,
exclude ,
many : bool ,
context ,
load_only ,
dump_only ,
partial : bool ,
unknown ,
) -> SchemaType [ A ]
Parameter
Type
Description
infer_missing
bool
only
exclude
many
bool
context
load_only
dump_only
partial
bool
unknown
def to_dict (
encode_json ,
) -> typing . Dict [ str , typing . Union [ dict , list , str , int , float , bool , NoneType ]]
Parameter
Type
Description
encode_json
def to_json (
skipkeys : bool ,
ensure_ascii : bool ,
check_circular : bool ,
allow_nan : bool ,
indent : typing . Union [ int , str , NoneType ],
separators : typing . Tuple [ str , str ],
default : typing . Callable ,
sort_keys : bool ,
kw ,
) -> str
Parameter
Type
Description
skipkeys
bool
ensure_ascii
bool
check_circular
bool
allow_nan
bool
indent
typing.Union[int, str, NoneType]
separators
typing.Tuple[str, str]
default
typing.Callable
sort_keys
bool
kw
Input to DBT Freshness task.
select : List[str]
List of model to be executed (default : None).
exclude : List[str]
List of model to be excluded (default : None).
class DBTFreshnessInput (
project_dir : str ,
profiles_dir : str ,
profile : str ,
target : str ,
output_path : str ,
ignore_handled_error : bool ,
flags : dict ,
select : typing . Optional [ typing . List [ str ]],
exclude : typing . Optional [ typing . List [ str ]],
)
Parameter
Type
Description
project_dir
str
profiles_dir
str
profile
str
target
str
output_path
str
ignore_handled_error
bool
flags
dict
select
typing.Optional[typing.List[str]]
exclude
typing.Optional[typing.List[str]]
def from_dict (
kvs : typing . Union [ dict , list , str , int , float , bool , NoneType ],
infer_missing ,
) -> ~ A
Parameter
Type
Description
kvs
typing.Union[dict, list, str, int, float, bool, NoneType]
infer_missing
def from_json (
s : typing . Union [ str , bytes , bytearray ],
parse_float ,
parse_int ,
parse_constant ,
infer_missing ,
kw ,
) -> ~ A
Parameter
Type
Description
s
typing.Union[str, bytes, bytearray]
parse_float
parse_int
parse_constant
infer_missing
kw
def schema (
infer_missing : bool ,
only ,
exclude ,
many : bool ,
context ,
load_only ,
dump_only ,
partial : bool ,
unknown ,
) -> SchemaType [ A ]
Parameter
Type
Description
infer_missing
bool
only
exclude
many
bool
context
load_only
dump_only
partial
bool
unknown
Convert the instance of DBTFreshnessInput into list of arguments.
List[str]
List of arguments.
def to_dict (
encode_json ,
) -> typing . Dict [ str , typing . Union [ dict , list , str , int , float , bool , NoneType ]]
Parameter
Type
Description
encode_json
def to_json (
skipkeys : bool ,
ensure_ascii : bool ,
check_circular : bool ,
allow_nan : bool ,
indent : typing . Union [ int , str , NoneType ],
separators : typing . Tuple [ str , str ],
default : typing . Callable ,
sort_keys : bool ,
kw ,
) -> str
Parameter
Type
Description
skipkeys
bool
ensure_ascii
bool
check_circular
bool
allow_nan
bool
indent
typing.Union[int, str, NoneType]
separators
typing.Tuple[str, str]
default
typing.Callable
sort_keys
bool
kw
Output of DBT Freshness task.
raw_sources : str
Raw value of DBT’s sources.json.
class DBTFreshnessOutput (
command : str ,
exit_code : int ,
raw_sources : str ,
)
Parameter
Type
Description
command
str
exit_code
int
raw_sources
str
def from_dict (
kvs : typing . Union [ dict , list , str , int , float , bool , NoneType ],
infer_missing ,
) -> ~ A
Parameter
Type
Description
kvs
typing.Union[dict, list, str, int, float, bool, NoneType]
infer_missing
def from_json (
s : typing . Union [ str , bytes , bytearray ],
parse_float ,
parse_int ,
parse_constant ,
infer_missing ,
kw ,
) -> ~ A
Parameter
Type
Description
s
typing.Union[str, bytes, bytearray]
parse_float
parse_int
parse_constant
infer_missing
kw
def schema (
infer_missing : bool ,
only ,
exclude ,
many : bool ,
context ,
load_only ,
dump_only ,
partial : bool ,
unknown ,
) -> SchemaType [ A ]
Parameter
Type
Description
infer_missing
bool
only
exclude
many
bool
context
load_only
dump_only
partial
bool
unknown
def to_dict (
encode_json ,
) -> typing . Dict [ str , typing . Union [ dict , list , str , int , float , bool , NoneType ]]
Parameter
Type
Description
encode_json
def to_json (
skipkeys : bool ,
ensure_ascii : bool ,
check_circular : bool ,
allow_nan : bool ,
indent : typing . Union [ int , str , NoneType ],
separators : typing . Tuple [ str , str ],
default : typing . Callable ,
sort_keys : bool ,
kw ,
) -> str
Parameter
Type
Description
skipkeys
bool
ensure_ascii
bool
check_circular
bool
allow_nan
bool
indent
typing.Union[int, str, NoneType]
separators
typing.Tuple[str, str]
default
typing.Callable
sort_keys
bool
kw
Input to DBT Run task.
select : List[str]
List of model to be executed (default=None).
exclude : List[str]
List of model to be excluded (default=None).
class DBTRunInput (
project_dir : str ,
profiles_dir : str ,
profile : str ,
target : str ,
output_path : str ,
ignore_handled_error : bool ,
flags : dict ,
select : typing . Optional [ typing . List [ str ]],
exclude : typing . Optional [ typing . List [ str ]],
)
Parameter
Type
Description
project_dir
str
profiles_dir
str
profile
str
target
str
output_path
str
ignore_handled_error
bool
flags
dict
select
typing.Optional[typing.List[str]]
exclude
typing.Optional[typing.List[str]]
def from_dict (
kvs : typing . Union [ dict , list , str , int , float , bool , NoneType ],
infer_missing ,
) -> ~ A
Parameter
Type
Description
kvs
typing.Union[dict, list, str, int, float, bool, NoneType]
infer_missing
def from_json (
s : typing . Union [ str , bytes , bytearray ],
parse_float ,
parse_int ,
parse_constant ,
infer_missing ,
kw ,
) -> ~ A
Parameter
Type
Description
s
typing.Union[str, bytes, bytearray]
parse_float
parse_int
parse_constant
infer_missing
kw
def schema (
infer_missing : bool ,
only ,
exclude ,
many : bool ,
context ,
load_only ,
dump_only ,
partial : bool ,
unknown ,
) -> SchemaType [ A ]
Parameter
Type
Description
infer_missing
bool
only
exclude
many
bool
context
load_only
dump_only
partial
bool
unknown
Convert the instance of BaseDBTInput into list of arguments.
List[str]
List of arguments.
def to_dict (
encode_json ,
) -> typing . Dict [ str , typing . Union [ dict , list , str , int , float , bool , NoneType ]]
Parameter
Type
Description
encode_json
def to_json (
skipkeys : bool ,
ensure_ascii : bool ,
check_circular : bool ,
allow_nan : bool ,
indent : typing . Union [ int , str , NoneType ],
separators : typing . Tuple [ str , str ],
default : typing . Callable ,
sort_keys : bool ,
kw ,
) -> str
Parameter
Type
Description
skipkeys
bool
ensure_ascii
bool
check_circular
bool
allow_nan
bool
indent
typing.Union[int, str, NoneType]
separators
typing.Tuple[str, str]
default
typing.Callable
sort_keys
bool
kw
Output of DBT run task.
raw_run_result : str
Raw value of DBT’s run_result.json.
raw_manifest : str
Raw value of DBT’s manifest.json.
class DBTRunOutput (
command : str ,
exit_code : int ,
raw_run_result : str ,
raw_manifest : str ,
)
Parameter
Type
Description
command
str
exit_code
int
raw_run_result
str
raw_manifest
str
def from_dict (
kvs : typing . Union [ dict , list , str , int , float , bool , NoneType ],
infer_missing ,
) -> ~ A
Parameter
Type
Description
kvs
typing.Union[dict, list, str, int, float, bool, NoneType]
infer_missing
def from_json (
s : typing . Union [ str , bytes , bytearray ],
parse_float ,
parse_int ,
parse_constant ,
infer_missing ,
kw ,
) -> ~ A
Parameter
Type
Description
s
typing.Union[str, bytes, bytearray]
parse_float
parse_int
parse_constant
infer_missing
kw
def schema (
infer_missing : bool ,
only ,
exclude ,
many : bool ,
context ,
load_only ,
dump_only ,
partial : bool ,
unknown ,
) -> SchemaType [ A ]
Parameter
Type
Description
infer_missing
bool
only
exclude
many
bool
context
load_only
dump_only
partial
bool
unknown
def to_dict (
encode_json ,
) -> typing . Dict [ str , typing . Union [ dict , list , str , int , float , bool , NoneType ]]
Parameter
Type
Description
encode_json
def to_json (
skipkeys : bool ,
ensure_ascii : bool ,
check_circular : bool ,
allow_nan : bool ,
indent : typing . Union [ int , str , NoneType ],
separators : typing . Tuple [ str , str ],
default : typing . Callable ,
sort_keys : bool ,
kw ,
) -> str
Parameter
Type
Description
skipkeys
bool
ensure_ascii
bool
check_circular
bool
allow_nan
bool
indent
typing.Union[int, str, NoneType]
separators
typing.Tuple[str, str]
default
typing.Callable
sort_keys
bool
kw
Input to DBT Test task.
select : List[str]
List of model to be executed (default : None).
exclude : List[str]
List of model to be excluded (default : None).
class DBTTestInput (
project_dir : str ,
profiles_dir : str ,
profile : str ,
target : str ,
output_path : str ,
ignore_handled_error : bool ,
flags : dict ,
select : typing . Optional [ typing . List [ str ]],
exclude : typing . Optional [ typing . List [ str ]],
)
Parameter
Type
Description
project_dir
str
profiles_dir
str
profile
str
target
str
output_path
str
ignore_handled_error
bool
flags
dict
select
typing.Optional[typing.List[str]]
exclude
typing.Optional[typing.List[str]]
def from_dict (
kvs : typing . Union [ dict , list , str , int , float , bool , NoneType ],
infer_missing ,
) -> ~ A
Parameter
Type
Description
kvs
typing.Union[dict, list, str, int, float, bool, NoneType]
infer_missing
def from_json (
s : typing . Union [ str , bytes , bytearray ],
parse_float ,
parse_int ,
parse_constant ,
infer_missing ,
kw ,
) -> ~ A
Parameter
Type
Description
s
typing.Union[str, bytes, bytearray]
parse_float
parse_int
parse_constant
infer_missing
kw
def schema (
infer_missing : bool ,
only ,
exclude ,
many : bool ,
context ,
load_only ,
dump_only ,
partial : bool ,
unknown ,
) -> SchemaType [ A ]
Parameter
Type
Description
infer_missing
bool
only
exclude
many
bool
context
load_only
dump_only
partial
bool
unknown
Convert the instance of DBTTestInput into list of arguments.
List[str]
List of arguments.
def to_dict (
encode_json ,
) -> typing . Dict [ str , typing . Union [ dict , list , str , int , float , bool , NoneType ]]
Parameter
Type
Description
encode_json
def to_json (
skipkeys : bool ,
ensure_ascii : bool ,
check_circular : bool ,
allow_nan : bool ,
indent : typing . Union [ int , str , NoneType ],
separators : typing . Tuple [ str , str ],
default : typing . Callable ,
sort_keys : bool ,
kw ,
) -> str
Parameter
Type
Description
skipkeys
bool
ensure_ascii
bool
check_circular
bool
allow_nan
bool
indent
typing.Union[int, str, NoneType]
separators
typing.Tuple[str, str]
default
typing.Callable
sort_keys
bool
kw
Output of DBT test task.
raw_run_result : str
Raw value of DBT’s run_result.json.
raw_manifest : str
Raw value of DBT’s manifest.json.
class DBTTestOutput (
command : str ,
exit_code : int ,
raw_run_result : str ,
raw_manifest : str ,
)
Parameter
Type
Description
command
str
exit_code
int
raw_run_result
str
raw_manifest
str
def from_dict (
kvs : typing . Union [ dict , list , str , int , float , bool , NoneType ],
infer_missing ,
) -> ~ A
Parameter
Type
Description
kvs
typing.Union[dict, list, str, int, float, bool, NoneType]
infer_missing
def from_json (
s : typing . Union [ str , bytes , bytearray ],
parse_float ,
parse_int ,
parse_constant ,
infer_missing ,
kw ,
) -> ~ A
Parameter
Type
Description
s
typing.Union[str, bytes, bytearray]
parse_float
parse_int
parse_constant
infer_missing
kw
def schema (
infer_missing : bool ,
only ,
exclude ,
many : bool ,
context ,
load_only ,
dump_only ,
partial : bool ,
unknown ,
) -> SchemaType [ A ]
Parameter
Type
Description
infer_missing
bool
only
exclude
many
bool
context
load_only
dump_only
partial
bool
unknown
def to_dict (
encode_json ,
) -> typing . Dict [ str , typing . Union [ dict , list , str , int , float , bool , NoneType ]]
Parameter
Type
Description
encode_json
def to_json (
skipkeys : bool ,
ensure_ascii : bool ,
check_circular : bool ,
allow_nan : bool ,
indent : typing . Union [ int , str , NoneType ],
separators : typing . Tuple [ str , str ],
default : typing . Callable ,
sort_keys : bool ,
kw ,
) -> str
Parameter
Type
Description
skipkeys
bool
ensure_ascii
bool
check_circular
bool
allow_nan
bool
indent
typing.Union[int, str, NoneType]
separators
typing.Tuple[str, str]
default
typing.Callable
sort_keys
bool
kw