Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit aac71ab

Browse files
Sung Won Chungsungchun12
Sung Won Chung
authored andcommitted
validate dbt 1.7.0 works
1 parent 886a615 commit aac71ab

File tree

6 files changed

+22834
-5029
lines changed

6 files changed

+22834
-5029
lines changed

data_diff/dbt_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def try_set_dbt_flags():
6464
PROJECT_FILE = "dbt_project.yml"
6565
PROFILES_FILE = "profiles.yml"
6666
LOWER_DBT_V = "1.0.0"
67-
UPPER_DBT_V = "1.7.0"
67+
UPPER_DBT_V = "1.8.0"
6868

6969

7070
# https://github.com/dbt-labs/dbt-core/blob/c952d44ec5c2506995fbad75320acbae49125d3d/core/dbt/cli/resolvers.py#L6

data_diff_demo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit d0784e8de9fc7958f91a599fa454be4f8b09c60d

datafold-demo-sung

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 6ebfb06d1e0937309384cdb4955e6dbd23387256

tests/dbt_artifacts/manifests/manifest_v11.json

Lines changed: 22752 additions & 5027 deletions
Large diffs are not rendered by default.
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"metadata": {
3+
"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v5.json",
4+
"dbt_version": "1.7.0",
5+
"generated_at": "2023-11-03T18:58:01.711121Z",
6+
"invocation_id": "13fd3e9b-66fd-4dee-bb27-b6acd818c747",
7+
"env": {}
8+
},
9+
"results": [
10+
{
11+
"status": "success",
12+
"timing": [
13+
{
14+
"name": "compile",
15+
"started_at": "2023-11-03T18:57:54.451415Z",
16+
"completed_at": "2023-11-03T18:57:54.455521Z"
17+
},
18+
{
19+
"name": "execute",
20+
"started_at": "2023-11-03T18:57:54.456321Z",
21+
"completed_at": "2023-11-03T18:57:56.603978Z"
22+
}
23+
],
24+
"thread_id": "Thread-4",
25+
"execution_time": 2.2710530757904053,
26+
"adapter_response": {
27+
"_message": "SUCCESS 1",
28+
"code": "SUCCESS",
29+
"rows_affected": 1,
30+
"query_id": "01b01671-0903-c114-0008-fb8312780ad2"
31+
},
32+
"message": "SUCCESS 1",
33+
"failures": null,
34+
"unique_id": "model.demo.customers",
35+
"compiled": true,
36+
"compiled_code": "with customers as (\n\n select * from DEV.development_sung.stg_customers\n\n),\n\norders as (\n\n select * from DEV.development_sung.stg_orders\n\n),\n\npayments as (\n\n select * from DEV.development_sung.stg_payments\n\n),\n\ncustomer_orders as (\n\n select\n customer_id,\n\n min(order_date) as first_order,\n max(order_date) as most_recent_order,\n count(order_id) as number_of_orders\n from orders\n\n group by customer_id\n\n),\n\ncustomer_payments as (\n\n select\n orders.customer_id,\n sum(amount) as total_amount\n\n from payments\n\n left join orders on\n payments.order_id = orders.order_id\n\n group by orders.customer_id\n\n),\n\nfinal as (\n\n select\n customers.customer_id,\n customers.first_name as changed_names,\n customers.last_name,\n customer_orders.first_order,\n customer_orders.most_recent_order,\n customer_orders.number_of_orders,\n customer_payments.total_amount as customer_lifetime_value\n\n from customers\n\n left join customer_orders\n on customers.customer_id = customer_orders.customer_id\n\n left join customer_payments\n on customers.customer_id = customer_payments.customer_id\n\n)\n\nselect * from final",
37+
"relation_name": "DEV.development_sung.customers"
38+
}
39+
],
40+
"elapsed_time": 9.092561960220337,
41+
"args": {
42+
"version_check": true,
43+
"printer_width": 80,
44+
"project_dir": "/Users/sung/Desktop/data-diff/datafold-demo-sung",
45+
"quiet": false,
46+
"send_anonymous_usage_stats": true,
47+
"introspect": true,
48+
"exclude": [],
49+
"log_file_max_bytes": 10485760,
50+
"strict_mode": false,
51+
"warn_error_options": { "include": [], "exclude": [] },
52+
"cache_selected_only": false,
53+
"log_level_file": "debug",
54+
"macro_debugging": false,
55+
"profiles_dir": "/Users/sung/Desktop/data-diff/datafold-demo-sung",
56+
"log_path": "/Users/sung/Desktop/data-diff/datafold-demo-sung/logs",
57+
"log_format": "default",
58+
"use_colors_file": true,
59+
"partial_parse_file_diff": true,
60+
"indirect_selection": "eager",
61+
"select": ["customers"],
62+
"favor_state": false,
63+
"populate_cache": true,
64+
"log_level": "info",
65+
"print": true,
66+
"write_json": true,
67+
"which": "run",
68+
"invocation_command": "dbt run -s customers",
69+
"static_parser": true,
70+
"enable_legacy_logger": false,
71+
"partial_parse": true,
72+
"vars": {},
73+
"show_resource_report": false,
74+
"defer": false,
75+
"log_format_file": "debug",
76+
"use_colors": true
77+
}
78+
}

tests/test_dbt_config_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
class TestRunResultsJsonConfig(unittest.TestCase):
1616
def test_run_results(self):
1717
# https://docs.getdbt.com/reference/artifacts/run-results-json
18-
versions = ["v4"]
18+
versions = ["v4","v5"]
1919

2020
for version in versions:
2121
with self.subTest(version=version):

0 commit comments

Comments
 (0)