From f59a6a84a17f1b9d9d58db03acdf7073bea7ba86 Mon Sep 17 00:00:00 2001 From: Brandon Braner Date: Tue, 4 Jun 2024 21:21:27 -0500 Subject: [PATCH] fix import errors on issue # 26 --- .gitignore | 1 + dbt/adapters/singlestore/connections.py | 4 ++-- dbt/adapters/singlestore/impl.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 291a439..9d95121 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ CLUSTER_ID *__pycache__* *egg-info* test.env +.DS_Store diff --git a/dbt/adapters/singlestore/connections.py b/dbt/adapters/singlestore/connections.py index 4bf1067..f345d4f 100644 --- a/dbt/adapters/singlestore/connections.py +++ b/dbt/adapters/singlestore/connections.py @@ -9,9 +9,9 @@ from typing import Optional import dbt.exceptions -from dbt.adapters.base import Credentials +from dbt.adapters.contracts.connection import Credentials from dbt.adapters.sql import SQLConnectionManager -from dbt.contracts.connection import AdapterResponse +from dbt.adapters.contracts.connection import AdapterResponse from dbt.logger import GLOBAL_LOGGER as logger from dbt.adapters.singlestore import __version__ diff --git a/dbt/adapters/singlestore/impl.py b/dbt/adapters/singlestore/impl.py index aa3c346..104233a 100644 --- a/dbt/adapters/singlestore/impl.py +++ b/dbt/adapters/singlestore/impl.py @@ -11,8 +11,8 @@ from dbt.adapters.base.impl import ConstraintSupport from dbt.adapters.base.meta import available from dbt.adapters.sql import SQLAdapter -from dbt.contracts.graph.nodes import ColumnLevelConstraint, ConstraintType, ModelLevelConstraint -from dbt.dataclass_schema import dbtClassMixin, ValidationError +from dbt_common.contracts.constraints import ColumnLevelConstraint, ConstraintType, ModelLevelConstraint +from dbt_common.dataclass_schema import dbtClassMixin, ValidationError from dbt.exceptions import DbtRuntimeError, CompilationError from dbt.logger import GLOBAL_LOGGER as logger