Skip to content

Commit f6dcd5e

Browse files
authored
Merge pull request #12 from fivetran/dependency-upgrades
Dependency upgrades
2 parents b6fa067 + c60f6b0 commit f6dcd5e

File tree

7 files changed

+45
-16
lines changed

7 files changed

+45
-16
lines changed

.circleci/config.yml

+11
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,23 @@ jobs:
1515
- run:
1616
name: "Setup dbt"
1717
command: |
18+
sudo apt install libsasl2-dev
1819
python3 -m venv venv
1920
. venv/bin/activate
2021
pip install --upgrade pip setuptools
2122
pip install -r integration_tests/requirements.txt
2223
mkdir -p ~/.dbt
2324
cp integration_tests/ci/sample.profiles.yml ~/.dbt/profiles.yml
25+
- run:
26+
name: "Run Tests - Spark"
27+
command: |
28+
. venv/bin/activate
29+
echo `pwd`
30+
cd integration_tests
31+
dbt deps
32+
dbt seed --target spark --full-refresh
33+
dbt run --target spark --full-refresh
34+
dbt test --target spark
2435
- run:
2536
name: "Run Tests - Redshift"
2637
command: |

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ models:
170170

171171
## Database Support
172172

173-
This package has been tested on BigQuery, Snowflake, and Redshift.
173+
This package has been tested on BigQuery, Snowflake, Redshift, Postgres, and Spark.
174174

175175
## Contributions
176176

@@ -180,12 +180,14 @@ or open PRs against `master`. Check out
180180
on the best workflow for contributing to a package.
181181

182182
## Resources:
183+
- Provide [feedback](https://www.surveymonkey.com/r/DQ7K7WW) on our existing dbt packages or what you'd like to see next
184+
- Have questions, feedback, or need help? Book a time during our office hours [using Calendly](https://calendly.com/fivetran-solutions-team/fivetran-solutions-team-office-hours) or email us at [email protected]
183185
- Find all of Fivetran's pre-built dbt packages in our [dbt hub](https://hub.getdbt.com/fivetran/)
184-
- Learn more about Fivetran [in the Fivetran docs](https://fivetran.com/docs)
186+
- Learn how to orchestrate [dbt transformations with Fivetran](https://fivetran.com/docs/transformations/dbt)
187+
- Learn more about Fivetran overall [in our docs](https://fivetran.com/docs)
185188
- Check out [Fivetran's blog](https://fivetran.com/blog)
186189
- Learn more about dbt [in the dbt docs](https://docs.getdbt.com/docs/introduction)
187190
- Check out [Discourse](https://discourse.getdbt.com/) for commonly asked questions and answers
188191
- Join the [chat](http://slack.getdbt.com/) on Slack for live discussions and support
189192
- Find [dbt events](https://events.getdbt.com) near you
190-
- Find [dbt events](https://events.getdbt.com) near you
191-
- Check out [dbt's blog](https://blog.getdbt.com/) for the latest news on dbt's development and best practices
193+
- Check out [the dbt blog](https://blog.getdbt.com/) for the latest news on dbt's development and best practices

dbt_project.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: 'ad_reporting'
22
version: '1.0.0'
33
config-version: 2
44

5-
require-dbt-version: [">=0.18.0", "<0.20.0"]
5+
require-dbt-version: [">=0.19.0", "<0.20.0"]
66

77
vars:
88
ad_reporting__pinterest_enabled: true
@@ -12,6 +12,8 @@ vars:
1212
ad_reporting__twitter_ads_enabled: true
1313
ad_reporting__facebook_ads_enabled: true
1414
ad_reporting__snapchat_ads_enabled: true
15+
dbt_utils_dispatch_list: ['spark_utils', 'fivetran_utils']
16+
fivetran_utils_dispatch_list: ['spark_utils']
1517

1618
models:
1719
ad_reporting:

integration_tests/ci/sample.profiles.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,16 @@ integration_tests:
3434
database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}"
3535
warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}"
3636
schema: ad_reporting_integration_tests
37-
threads: 8
37+
threads: 8
38+
spark:
39+
type: spark
40+
method: http
41+
schema: ad_reporting_integration_tests
42+
host: "{{ env_var('CI_SPARK_DBT_HOST') }}"
43+
organization: "{{ env_var('CI_SPARK_DBT_ORGANIZATION') }}"
44+
token: "{{ env_var('CI_SPARK_DBT_TOKEN') }}"
45+
cluster: "{{ env_var('CI_SPARK_DBT_CLUSTER') }}"
46+
port: 443
47+
connect_timeout: 60
48+
connect_retries: 5
49+
threads: 4

integration_tests/dbt_project.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ seeds:
158158
### Facebook Seeds
159159

160160
facebook_ads_creative_history_data:
161-
+column_types:
162-
page_link: "{{ 'string' if target.name == 'bigquery' else 'varchar' }}"
163-
template_page_link: "{{ 'string' if target.name == 'bigquery' else 'varchar' }}"
161+
+column_types:
162+
page_link: "{{ 'string' if target.name in ['bigquery','spark'] else 'varchar' }}"
163+
template_page_link: "{{ 'string' if target.name in ['bigquery','spark'] else 'varchar' }}"
164164
id: "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"
165165
account_id: "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"
166166
facebook_ads_account_history_data:

integration_tests/requirements.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
dbt==0.19.0
1+
dbt==0.19.1
2+
dbt-spark==0.19.1
3+
dbt-spark[PyHive]==0.19.1

packages.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
packages:
22

33
- package: fivetran/pinterest
4-
version: [">=0.2.0", "<0.3.0"]
4+
version: [">=0.3.0", "<0.4.0"]
55

66
- package: fivetran/microsoft_ads
7-
version: [">=0.1.0", "<0.2.0"]
7+
version: [">=0.2.0", "<0.3.0"]
88

99
- package: fivetran/linkedin
1010
version: [">=0.2.0", "<0.3.0"]
1111

1212
- package: fivetran/google_ads
13-
version: [">=0.1.0", "<0.2.0"]
13+
version: [">=0.2.0", "<0.3.0"]
1414

1515
- package: fivetran/twitter_ads
16-
version: [">=0.1.0", "<0.2.0"]
16+
version: [">=0.2.0", "<0.3.0"]
1717

1818
- package: fivetran/facebook_ads
19-
version: [">=0.1.0", "<0.2.0"]
19+
version: [">=0.2.0", "<0.3.0"]
2020

2121
- package: fivetran/snapchat_ads
22-
version: [">=0.1.0", "<0.2.0"]
22+
version: [">=0.1.1", "<0.2.0"]

0 commit comments

Comments
 (0)