Skip to content

Commit

Permalink
add microbatch tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk committed Sep 11, 2024
1 parent f9cc27f commit 7876219
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% endmacro %}


{% macro get_incremental_microbatch_sql(arg_dict) %}
{% macro postgres__get_incremental_microbatch_sql(arg_dict) %}

{% if arg_dict["unique_key"] %}
{% do return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) %}
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ path = "dbt/adapters/postgres/__version__.py"
dependencies = [
"dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git",
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git",
"dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git#subdirectory=dbt-tests-adapter",
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core",
"dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git@base-microbatch-tests#subdirectory=dbt-tests-adapter",
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git@event-time-ref-filtering#subdirectory=core",
'pre-commit==3.7.0;python_version>="3.9"',
'pre-commit==3.5.0;python_version=="3.8"',
"freezegun",
Expand Down
6 changes: 6 additions & 0 deletions tests/functional/adapter/test_incremental_microbatch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from dbt.tests.adapter.incremental.test_incremental_microbatch import (
BaseMicrobatch,
)

class TestPostgresMicrobatch(BaseMicrobatch):
pass

0 comments on commit 7876219

Please sign in to comment.