Skip to content

Commit

Permalink
Merge branch 's3x-version2' of https://github.com/vertica/dbt-vertica
Browse files Browse the repository at this point in the history
…into s3x-version2
  • Loading branch information
Sachin-Thakur committed Nov 9, 2023
2 parents 5054bc3 + 0aab99c commit 9ec7c6a
Show file tree
Hide file tree
Showing 38 changed files with 927 additions and 728 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/vertica-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11']
python-version: [ '3.10', '3.11']
services:
vertica:
image: vertica/vertica-ce:latest
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Test Basic
run: python -m pytest tests/functional/adapter/test_basic.py
- name: Test Constraints
run: python -m pytest tests/functional/adapter/test_constraints.py
run: python -m pytest tests/functional/adapter/constraints/test_constraints.py
- name: Test Incremental
run: python -m pytest tests/functional/adapter/incremental/
- name: Test Concurrency
Expand Down
4 changes: 2 additions & 2 deletions dbt/include/vertica/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
config-version: 2

name: dbt_vertica
name: dbt_vertica_1
# version: 0.20.1
version: 2.0.0

macro-paths: ["macros"]


profile: vpn_samp
profile: project_example
Binary file added dbt/include/vertica/target/graph.gpickle
Binary file not shown.
1 change: 1 addition & 0 deletions dbt/include/vertica/target/graph_summary.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"_invocation_id": "7b941857-bf5a-498a-b462-78ed37e554be", "linked": {}}
1 change: 1 addition & 0 deletions dbt/include/vertica/target/manifest.json

Large diffs are not rendered by default.

Binary file added dbt/include/vertica/target/partial_parse.msgpack
Binary file not shown.
1 change: 1 addition & 0 deletions dbt/include/vertica/target/run_results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.6.0", "generated_at": "2023-10-26T07:12:19.433674Z", "invocation_id": "7b941857-bf5a-498a-b462-78ed37e554be", "env": {}}, "results": [], "elapsed_time": 0.0, "args": {"favor_state": false, "introspect": true, "invocation_command": "dbt run", "print": true, "static_parser": true, "log_path": "C:\\Users\\venkat thota\\dbt-work\\dbt-vertica\\dbt\\include\\vertica\\logs", "strict_mode": false, "select": [], "partial_parse": true, "quiet": false, "version_check": true, "cache_selected_only": false, "project_dir": "C:\\Users\\venkat thota\\dbt-work\\dbt-vertica\\dbt\\include\\vertica", "macro_debugging": false, "write_json": true, "log_level": "info", "enable_legacy_logger": false, "log_level_file": "debug", "log_format_file": "debug", "send_anonymous_usage_stats": true, "use_colors": true, "warn_error_options": {"include": [], "exclude": []}, "defer": false, "log_format": "default", "indirect_selection": "eager", "printer_width": 80, "which": "run", "use_colors_file": true, "log_file_max_bytes": 10485760, "exclude": [], "profiles_dir": "C:\\Users\\venkat thota\\.dbt", "vars": {}, "populate_cache": true}}
1 change: 1 addition & 0 deletions dbt/include/vertica/target/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": "2", "patch_version": "2"}}}
10 changes: 10 additions & 0 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
config-version: 2

name: dbt_vertica
# version: 0.20.1
version: 2.0.0

macro-paths: ["macros"]


profile: 'project_example'
2 changes: 1 addition & 1 deletion example/demo_dbt_vmart/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version: '1.0.0'
config-version: 2

# This setting configures which "profile" dbt uses for this project.
profile: 'vmart_project'
profile: project_example

# These configurations specify where dbt should look for different types of files.
# The `model-paths` config, for example, states that models in this project can be
Expand Down
2 changes: 1 addition & 1 deletion example/demo_dbt_vmart/models/staging/vmart/src_vmart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
sources:
- name: raw_data
description: This is the raw data to transform.
database: partner12db
database: VMart
schema: raw_schema
tables:
- name: states
Expand Down
Binary file not shown.
1 change: 1 addition & 0 deletions example/demo_dbt_vmart/target_clone/graph_summary.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"_invocation_id": "aabea3e5-43d2-4844-a977-6ac919a83ded", "linked": {"0": {"name": "source.vmart_project.raw_data.states", "type": "source", "succ": [5, 23, 24]}, "1": {"name": "source.vmart_project.raw_data.vendors", "type": "source", "succ": [4, 25, 26]}, "2": {"name": "source.vmart_project.raw_data.store_orders", "type": "source", "succ": [7, 9, 10, 27, 28]}, "3": {"name": "model.vmart_project.dim_vendors", "type": "model", "succ": [8, 11, 12]}, "4": {"name": "model.vmart_project.stg_vendors", "type": "model", "succ": [3, 19, 20]}, "5": {"name": "model.vmart_project.stg_states", "type": "model", "succ": [3, 17, 18]}, "6": {"name": "model.vmart_project.fct_store_orders", "type": "model", "succ": [8, 13, 14]}, "7": {"name": "model.vmart_project.stg_store_orders", "type": "model", "succ": [6, 21, 22]}, "8": {"name": "model.vmart_project.vendor_performance", "type": "model", "succ": [15, 16]}, "9": {"name": "model.vmart_project.stg_store_orders_insert_overwrite", "type": "model"}, "10": {"name": "model.vmart_project.stg_store_orders_merge", "type": "model"}, "11": {"name": "test.vmart_project.not_null_dim_vendors_vendor_key.0612e0ebc4", "type": "test"}, "12": {"name": "test.vmart_project.unique_dim_vendors_vendor_key.4005cfa85b", "type": "test"}, "13": {"name": "test.vmart_project.not_null_fct_store_orders_order_number.b0eb046809", "type": "test"}, "14": {"name": "test.vmart_project.unique_fct_store_orders_order_number.7a34168d40", "type": "test"}, "15": {"name": "test.vmart_project.not_null_vendor_performance_vendor_key.347fe86792", "type": "test"}, "16": {"name": "test.vmart_project.unique_vendor_performance_vendor_key.f5820dc83f", "type": "test"}, "17": {"name": "test.vmart_project.not_null_stg_states_state_code.b007fc7e23", "type": "test"}, "18": {"name": "test.vmart_project.unique_stg_states_state_code.e611a799f5", "type": "test"}, "19": {"name": "test.vmart_project.not_null_stg_vendors_vendor_key.843d542363", "type": "test"}, "20": {"name": "test.vmart_project.unique_stg_vendors_vendor_key.8498b3503a", "type": "test"}, "21": {"name": "test.vmart_project.not_null_stg_store_orders_order_number.0dc66bc53a", "type": "test"}, "22": {"name": "test.vmart_project.unique_stg_store_orders_order_number.540f83e2c4", "type": "test"}, "23": {"name": "test.vmart_project.source_unique_raw_data_states_statecode.7722e8778f", "type": "test"}, "24": {"name": "test.vmart_project.source_not_null_raw_data_states_statecode.47d6c700e8", "type": "test"}, "25": {"name": "test.vmart_project.source_unique_raw_data_vendors_vendorid.7cc723ae95", "type": "test"}, "26": {"name": "test.vmart_project.source_not_null_raw_data_vendors_vendorid.7d36f8a987", "type": "test"}, "27": {"name": "test.vmart_project.source_unique_raw_data_store_orders_ordernumber.d5595fc705", "type": "test"}, "28": {"name": "test.vmart_project.source_not_null_raw_data_store_orders_ordernumber.d4491b34ce", "type": "test"}}}
1 change: 1 addition & 0 deletions example/demo_dbt_vmart/target_clone/manifest.json

Large diffs are not rendered by default.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@




DROP TABLE IF EXISTS "VMart"."my_schema"."dim_vendors";
create table
"VMart"."my_schema"."dim_vendors" as select * from
"VMart"."public"."dim_vendors"




Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@




DROP TABLE IF EXISTS "VMart"."my_schema"."fct_store_orders";
create table
"VMart"."my_schema"."fct_store_orders" as select * from
"VMart"."public"."fct_store_orders"




Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@




DROP TABLE IF EXISTS "VMart"."my_schema"."vendor_performance";
create table
"VMart"."my_schema"."vendor_performance" as select * from
"VMart"."public"."vendor_performance"




Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@





Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@





Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@




DROP TABLE IF EXISTS "VMart"."my_schema"."stg_store_orders_insert_overwrite";
create table
"VMart"."my_schema"."stg_store_orders_insert_overwrite" as select * from
"VMart"."public"."stg_store_orders_insert_overwrite"




Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@




DROP TABLE IF EXISTS "VMart"."my_schema"."stg_store_orders_merge";
create table
"VMart"."my_schema"."stg_store_orders_merge" as select * from
"VMart"."public"."stg_store_orders_merge"




Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@





Loading

0 comments on commit 9ec7c6a

Please sign in to comment.