Skip to content

Commit

Permalink
Merge branch '0.19.0.latest'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Wigley committed Feb 26, 2021
2 parents 46b2881 + 130ef70 commit 9429248
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
### Under the hood
- update serialization calls to use new API in dbt-core `0.19.1b2` ([#150](https://github.com/fishtown-analytics/dbt-spark/pull/150))

## dbt-spark 0.19.0.1 (February 26, 2021)

## dbt-spark 0.19.0 (February 22, 2021)
### Fixes
- Fix package distribution to include incremental model materializations ([#151](https://github.com/fishtown-analytics/dbt-spark/pull/151), [#152](https://github.com/fishtown-analytics/dbt-spark/issues/152))

## dbt-spark 0.19.0 (February 21, 2021)

### Breaking changes
- Incremental models have `incremental_strategy: append` by default. This strategy adds new records without updating or overwriting existing records. For that, use `merge` or `insert_overwrite` instead, depending on the file format, connection method, and attributes of your underlying data. dbt will try to raise a helpful error if you configure a strategy that is not supported for a given file format or connection. ([#140](https://github.com/fishtown-analytics/dbt-spark/pull/140), [#141](https://github.com/fishtown-analytics/dbt-spark/pull/141))
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
recursive-include dbt/include *.sql *.yml *.md
23 changes: 10 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ def _dbt_spark_version():
f'dbt_version={dbt_version}'
)

odbc_extras = ['pyodbc>=4.0.30']
pyhive_extras = [
'PyHive[hive]>=0.6.0,<0.7.0',
'thrift>=0.11.0,<0.12.0',
]
all_extras = odbc_extras + pyhive_extras

setup(
name=package_name,
Expand All @@ -51,23 +57,14 @@ def _dbt_spark_version():
url='https://github.com/fishtown-analytics/dbt-spark',

packages=find_namespace_packages(include=['dbt', 'dbt.*']),
package_data={
'dbt': [
'include/spark/dbt_project.yml',
'include/spark/sample_profiles.yml',
'include/spark/macros/*.sql',
'include/spark/macros/**/*.sql',
]
},
include_package_data=True,
install_requires=[
f'dbt-core=={dbt_version}',
'sqlparams>=3.0.0',
],
extras_require={
"ODBC": ['pyodbc>=4.0.30'],
"PyHive": [
'PyHive[hive]>=0.6.0,<0.7.0',
'thrift>=0.11.0,<0.12.0',
],
"ODBC": odbc_extras,
"PyHive": pyhive_extras,
"all": all_extras
}
)

0 comments on commit 9429248

Please sign in to comment.