Skip to content

Commit

Permalink
fix sort issues
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-db committed Nov 21, 2024
1 parent 275cc1b commit 819f2ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
11 changes: 6 additions & 5 deletions dbt/adapters/databricks/constraints.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
from functools import partial
from typing import Any, Callable, Optional, TypeVar

from dbt_common.contracts.constraints import (
ColumnLevelConstraint,
ModelLevelConstraint,
ConstraintType,
ModelLevelConstraint,
)
from dbt_common.exceptions import DbtValidationError
from dbt_common.events.functions import warn_or_error
from dbt_common.exceptions import DbtValidationError

from dbt.adapters.base import ConstraintSupport
from dbt.adapters.events.types import ConstraintNotSupported, ConstraintNotEnforced
from dbt.adapters.databricks.logging import logger
from functools import partial

from dbt.adapters.events.types import ConstraintNotEnforced, ConstraintNotSupported

# Support constants
CONSTRAINT_SUPPORT = {
Expand Down
7 changes: 4 additions & 3 deletions tests/unit/test_constraints.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from mock import patch
import pytest
from dbt_common.contracts.constraints import (
ConstraintType,
ColumnLevelConstraint,
ConstraintType,
ModelLevelConstraint,
)
from dbt.adapters.databricks import constraints
from dbt_common.exceptions import DbtValidationError
from mock import patch

from dbt.adapters.databricks import constraints


class TestConstraintsSupported:
Expand Down

0 comments on commit 819f2ea

Please sign in to comment.