This repository was archived by the owner on May 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 278
/
Copy patherrors.py
74 lines (38 loc) · 2.49 KB
/
errors.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
class DataDiffDbtProjectVarsNotFoundError(Exception):
"Raised when an expected dbt_project.yml section is missing."
class DataDiffDbtProfileNotFoundError(Exception):
"Raised when an expected profiles.yml section is missing."
class DataDiffDbtNoSuccessfulModelsInRunError(Exception):
"Raised when there are no successful model runs in the run_results.json"
class DataDiffDbtRunResultsVersionError(Exception):
"Raised when the dbt version in run_results.json is lower than the minimum version."
class DataDiffDbtSelectNoMatchingModelsError(Exception):
"Raised when the `--select` flag returns no models."
class DataDiffDbtSelectUnexpectedError(Exception):
"Catch all for unexpected dbt list --select results."
class DataDiffDbtSnowflakeSetConnectionError(Exception):
"Raised when a dbt snowflake profile has unexpected values."
class DataDiffDbtBigQueryUnsupportedMethodError(Exception):
"Raised when trying to use an unsupported connection with BigQuery."
class DataDiffDbtRedshiftPasswordOnlyError(Exception):
"Raised when using a non-password connection method with Redshift."
class DataDiffDbtConnectionNotImplementedError(Exception):
"Raised when trying to use an unsupported dbt connection method."
class DataDiffDbtCoreNoRunnerError(Exception):
"Raised when the manifest version >= 1.5, but the dbt-core package is < 1.5. This is an edge case most likely to occur in development."
class DataDiffCustomSchemaNoConfigError(Exception):
"Raised when a model has a custom schema, but there is no prod_custom_schema config. (And not using --state)."
class DataDiffNoAPIKeyError(Exception):
"Raised when using --cloud but no API key is present in the DATAFOLD_API_KEY env var or keyring"
class DataDiffNoDatasourceIdError(Exception):
"Raised when using --cloud but no datasource_id was found in dbt_project.yml"
class DataDiffDatasourceIdNotFoundError(Exception):
"Raised when using --cloud but the datasource_id is not found for a particular org."
class DataDiffCloudDiffFailed(Exception):
"Raised when using --cloud and the remote diff fails."
class DataDiffCloudDiffTimedOut(Exception):
"Raised when using --cloud and the diff did not return finish before the timeout value."
class DataDiffSimpleSelectNotFound(Exception):
"Raised when using --select on dbt < 1.5 and a model node is not found in the manifest."
class DataDiffMismatchingKeyTypesError(Exception):
"Raised when the key types of two tables do not match, like VARCHAR and INT."