Skip to content

Commit

Permalink
Merge pull request #137 from fishtown-analytics/bump/dbt-0-19-0rc1
Browse files Browse the repository at this point in the history
bump to 0.19.0rc1
  • Loading branch information
Kyle Wigley authored Jan 8, 2021
2 parents e58ed5b + 0a900d0 commit 2f7c2dc
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .bumpversion-dbt.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.18.1
current_version = 0.19.0rc1
parse = (?P<major>\d+)
\.(?P<minor>\d+)
\.(?P<patch>\d+)
Expand Down
2 changes: 1 addition & 1 deletion dbt/adapters/spark/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.18.1.1"
version = "0.19.0rc1"
2 changes: 1 addition & 1 deletion dbt/adapters/spark/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def cancel(self, connection):
connection.handle.cancel()

@classmethod
def get_status(cls, cursor):
def get_response(cls, cursor):
return 'OK'

# No transactions on Spark....
Expand Down
2 changes: 1 addition & 1 deletion dbt/include/spark/macros/materializations/seed.sql
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
{%- set target_relation = api.Relation.create(database=database, schema=schema, identifier=identifier,
type='table') -%}
{%- set agate_table = load_agate_table() -%}
{%- do store_result('agate_table', status='OK', agate_table=agate_table) -%}
{%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}

{{ run_hooks(pre_hooks, inside_transaction=False) }}

Expand Down
2 changes: 1 addition & 1 deletion dbt/include/spark/macros/materializations/snapshot.sql
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@

{% if not target_relation_exists %}

{% set build_sql = build_snapshot_table(strategy, model['injected_sql']) %}
{% set build_sql = build_snapshot_table(strategy, model['compiled_sql']) %}
{% set final_sql = create_table_as(False, target_relation, build_sql) %}

{% else %}
Expand Down
2 changes: 1 addition & 1 deletion dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ pytest-xdist>=2.1.0,<3
flaky>=3.5.3,<4

# Test requirements
pytest-dbt-adapter==0.3.0
pytest-dbt-adapter==0.4.0
sasl==0.2.1
thrift_sasl==0.4.1
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dbt-core==0.18.1
dbt-core==0.19.0rc1
PyHive[hive]>=0.6.0,<0.7.0
pyodbc>=4.0.30
sqlparams>=3.0.0
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def _dbt_spark_version():
package_version = _dbt_spark_version()
description = """The SparkSQL plugin for dbt (data build tool)"""

dbt_version = '0.18.1'
dbt_version = '0.19.0rc1'
# the package version should be the dbt version, with maybe some things on the
# ends of it. (0.18.1 vs 0.18.1a1, 0.18.1.1, ...)
# ends of it. (0.19.0rc1 vs 0.19.0rc1a1, 0.19.0rc1.1, ...)
if not package_version.startswith(dbt_version):
raise ValueError(
f'Invalid setup.py: package_version={package_version} must start with '
Expand Down
3 changes: 2 additions & 1 deletion test/unit/test_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def setUp(self):
'quoting': {
'identifier': False,
'schema': False,
}
},
'config-version': 2
}

def _get_target_http(self, project):
Expand Down

0 comments on commit 2f7c2dc

Please sign in to comment.