Skip to content

Commit

Permalink
Merge pull request #3 from jschintz-nytimes/bq_v1.0
Browse files Browse the repository at this point in the history
Bq v1.0
  • Loading branch information
jschintz-nytimes authored Oct 29, 2024
2 parents 1db3f04 + 0736e04 commit 9992e8f
Show file tree
Hide file tree
Showing 10 changed files with 112 additions and 130 deletions.
5 changes: 3 additions & 2 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@

name: 'dbt_constraints'
version: '1.0.1'
version: '1.0.4'
config-version: 2

# These macros depend on the results and graph objects in dbt >=0.19.0
# and has been tested with dbt >=1.0.0
require-dbt-version: ">=1.0.0"
# v1.0.3 adds usage of the attached_node attribute added in dbt 1.5.x
require-dbt-version: ">=1.5.0"

profile: 'dbt_constraints'

Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.2", "generated_at": "2023-01-20T04:30:03.174118Z", "invocation_id": "134cbac7-4598-4147-95e0-4a1ee1fd6018", "env": {}}, "nodes": {}, "sources": {}, "errors": null}
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.8.5", "generated_at": "2024-08-19T18:34:12.783856Z", "invocation_id": "6248ccf8-48d0-470c-b010-2db8eb51c482", "env": {}}, "nodes": {}, "sources": {}, "errors": null}
1 change: 1 addition & 0 deletions docs/graph_summary.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"_invocation_id": "6248ccf8-48d0-470c-b010-2db8eb51c482", "linked": {"0": {"name": "operation.dbt_constraints.dbt_constraints-on-run-end-0", "type": "operation"}}}
55 changes: 14 additions & 41 deletions docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/run_results.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.3.2", "generated_at": "2023-01-20T04:30:03.161471Z", "invocation_id": "134cbac7-4598-4147-95e0-4a1ee1fd6018", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-20T04:30:03.148101Z", "completed_at": "2023-01-20T04:30:03.158655Z"}, {"name": "execute", "started_at": "2023-01-20T04:30:03.159021Z", "completed_at": "2023-01-20T04:30:03.159048Z"}], "thread_id": "Thread-1", "execution_time": 0.012279033660888672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "operation.dbt_constraints.dbt_constraints-on-run-end-0"}], "elapsed_time": 0.02072310447692871, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/dflippo/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "quiet": false, "no_print": false, "cache_selected_only": false, "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}}
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v6.json", "dbt_version": "1.8.5", "generated_at": "2024-08-19T18:34:12.756239Z", "invocation_id": "6248ccf8-48d0-470c-b010-2db8eb51c482", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-08-19T18:34:12.748983Z", "completed_at": "2024-08-19T18:34:12.754902Z"}, {"name": "execute", "started_at": "2024-08-19T18:34:12.755039Z", "completed_at": "2024-08-19T18:34:12.755046Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006446123123168945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "operation.dbt_constraints.dbt_constraints-on-run-end-0", "compiled": true, "compiled_code": "", "relation_name": null}], "elapsed_time": 0.00990605354309082, "args": {"show_resource_report": false, "log_level": "info", "populate_cache": true, "warn_error_options": {"include": [], "exclude": []}, "version_check": true, "use_colors_file": true, "exclude": [], "quiet": false, "printer_width": 80, "defer": false, "source_freshness_run_project_hooks": false, "write_json": true, "require_explicit_package_overrides_for_builtin_materializations": true, "macro_debugging": false, "log_format_file": "debug", "profiles_dir": "/Users/dflippo/.dbt", "static_parser": true, "invocation_command": "dbt docs generate", "strict_mode": false, "log_path": "/Users/dflippo/Documents/GitHub/Snowflake-Labs/dbt_constraints/logs", "partial_parse": true, "project_dir": "/Users/dflippo/Documents/GitHub/Snowflake-Labs/dbt_constraints", "enable_legacy_logger": false, "send_anonymous_usage_stats": true, "print": true, "empty_catalog": false, "indirect_selection": "eager", "log_level_file": "debug", "vars": {}, "log_file_max_bytes": 10485760, "log_format": "default", "favor_state": false, "introspect": true, "use_colors": true, "partial_parse_file_diff": true, "require_resource_names_without_spaces": false, "compile": true, "cache_selected_only": false, "select": [], "static": false, "which": "generate"}}
1 change: 1 addition & 0 deletions docs/semantic_manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"semantic_models": [], "metrics": [], "project_configuration": {"time_spine_table_configurations": [], "metadata": null, "dsi_package_version": {"major_version": "0", "minor_version": "5", "patch_version": "1"}}, "saved_queries": []}
6 changes: 4 additions & 2 deletions integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ vars:
dbt_constraints_sources_uk_enabled: true
dbt_constraints_sources_fk_enabled: true

on-run-start:
- "drop table if exists dim_orders"

models:
+materialized: table
Expand All @@ -52,8 +54,8 @@ seeds:
#+full_refresh: false

tests:
+dbt_constraints_integration_tests:
#+always_create_constraint: true
dbt_constraints_integration_tests:
+always_create_constraint: true
# These configuration settings disable running tests or just constraints by path
# +enabled: false
#+dbt_constraints_enabled: false
2 changes: 1 addition & 1 deletion integration_tests/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ packages:

# We will test unique keys based on dbt_utils.unique_combination_of_columns
- package: dbt-labs/dbt_utils
version: [">=0.8.0"]
version: [">=1.3.0"]

- local: ../
Loading

0 comments on commit 9992e8f

Please sign in to comment.