Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

databricks #61

Merged
merged 4 commits into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,18 @@ steps:
- "CI_REDSHIFT_DBT_PASS"
- "CI_REDSHIFT_DBT_USER"
commands: |
bash .buildkite/scripts/run_models.sh redshift
bash .buildkite/scripts/run_models.sh redshift

- label: ":databricks: Run Tests - Databricks"
fivetran-avinash marked this conversation as resolved.
Show resolved Hide resolved
key: "run_dbt_databricks"
plugins:
- docker#v3.13.0:
image: "python:3.8"
shell: [ "/bin/bash", "-e", "-c" ]
environment:
- "BASH_ENV=/tmp/.bashrc"
- "CI_DATABRICKS_DBT_HOST"
- "CI_DATABRICKS_DBT_HTTP_PATH"
- "CI_DATABRICKS_DBT_TOKEN"
commands: |
bash .buildkite/scripts/run_models.sh databricks
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# dbt_netsuite v0.7.1
## 🎉 Feature Updates 🎉
Now introducing...Databricks compatibility 🧱 ([PR #61](https://github.com/fivetran/dbt_netsuite/pull/61))

# dbt_netsuite v0.7.0

## 🚨 Breaking Changes 🚨:
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,15 @@ To use this dbt package, you must have At least either one Fivetran **Netsuite**
- vendorcategory

### Database Compatibility
This package is compatible with either a **BigQuery**, **Snowflake**, **Redshift**, or **PostgreSQL** destination.
This package is compatible with either a **BigQuery**, **Snowflake**, **Redshift**, **PostgreSQL**, or **Databricks** destination.
fivetran-avinash marked this conversation as resolved.
Show resolved Hide resolved

### Databricks dispatch configuration
If you are using a Databricks destination with this package, you must add the following (or a variation of the following) dispatch configuration within your `dbt_project.yml`. This is required in order for the package to accurately search for macros within the `dbt-labs/spark_utils` then the `dbt-labs/dbt_utils` packages respectively.
```yml
dispatch:
- macro_namespace: dbt_utils
search_order: ['spark_utils', 'dbt_utils']
```

## Step 2: Install the package
Include the following netsuite package version in your `packages.yml` file:
Expand Down Expand Up @@ -216,6 +224,9 @@ packages:

- package: dbt-labs/dbt_utils
version: [">=1.0.0", "<2.0.0"]

- package: dbt-labs/spark_utils
version: [">=0.3.0", "<0.4.0"]
```
# 🙌 How is this package maintained and can I contribute?
## Package Maintenance
Expand Down
4 changes: 2 additions & 2 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
config-version: 2
name: 'netsuite'
version: '0.7.0'
profile: 'integration'
version: '0.7.1'
require-dbt-version: [">=1.3.0", "<2.0.0"]

models:
netsuite:
+materialized: table
Expand Down
6 changes: 5 additions & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'netsuite_integration_tests'
version: '0.7.0'
version: '0.7.1'
profile: 'integration_tests'
config-version: 2
models:
Expand Down Expand Up @@ -57,3 +57,7 @@ seeds:
due_date: timestamp
startdate: timestamp
starting: timestamp

dispatch:
- macro_namespace: dbt_utils
search_order: ['spark_utils', 'dbt_utils']
10 changes: 8 additions & 2 deletions packages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
packages:
fivetran-avinash marked this conversation as resolved.
Show resolved Hide resolved
- package: fivetran/netsuite_source
version: [">=0.6.0", "<0.7.0"]
# - package: fivetran/netsuite_source
# version: [">=0.6.0", "<0.7.0"]

- git: https://github.com/fivetran/dbt_netsuite_source.git
revision: releases/v0.6.latest
warn-unpinned: false

# - local: ../Netsuite/dbt_netsuite_source