Skip to content

Commit

Permalink
fix typo on partitionType field
Browse files Browse the repository at this point in the history
  • Loading branch information
kalanyuz committed Oct 11, 2023
1 parent 037ac22 commit c1eeae9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbt/include/bigquery/macros/materializations/table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ df.write \
{%- if partition_config.data_type | lower in ('date','timestamp','datetime') %}
.option("partitionField", "{{- partition_config.field -}}") \
{%- if partition_config.granularity is not none %}
.option("partitonType", "{{- partition_config.granularity -}}") \
.option("partitionType", "{{- partition_config.granularity -}}") \
{%- endif %}
{%- endif %}
{%- if raw_cluster_by is not none %}
Expand Down
3 changes: 2 additions & 1 deletion tests/functional/adapter/test_python_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def model(dbt, spark):
description: Column C
"""


class TestPythonPartitionedModels:
@pytest.fixture(scope="class")
def macros(self):
Expand All @@ -138,7 +139,7 @@ def models(self):
}

def test_multiple_named_python_models(self, project):
result= run_dbt(["run"])
result = run_dbt(["run"])
assert len(result) == 1

test_results = run_dbt(["test"])
Expand Down

0 comments on commit c1eeae9

Please sign in to comment.