Skip to content

Commit

Permalink
merge other changes
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-db committed Dec 6, 2024
1 parent 4efecf6 commit b240be4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbt/adapters/databricks/column.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def render_for_create(self) -> str:
column_str += f" COMMENT '{comment}'"
for constraint in self.constraints or []:
c = constraints.process_column_constraint(constraint)
if c != "":
if c:
column_str += f" {c}"
return column_str

Expand Down
3 changes: 2 additions & 1 deletion tests/unit/test_constraints.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from unittest.mock import patch

import pytest
from dbt_common.contracts.constraints import (
ColumnLevelConstraint,
ConstraintType,
ModelLevelConstraint,
)
from dbt_common.exceptions import DbtValidationError
from mock import patch

from dbt.adapters.databricks import constraints

Expand Down

0 comments on commit b240be4

Please sign in to comment.