diff --git a/dbt/adapters/databricks/relation_configs/policies.py b/dbt/adapters/databricks/relation_configs/policies.py new file mode 100644 index 000000000..0b4a4769e --- /dev/null +++ b/dbt/adapters/databricks/relation_configs/policies.py @@ -0,0 +1,30 @@ +from dataclasses import dataclass + +from dbt.adapters.base.relation import Policy +from dbt.dataclass_schema import StrEnum + + +MAX_CHARACTERS_IN_IDENTIFIER = 127 + + +class DatabricksRelationType(StrEnum): + Table = "table" + View = "view" + CTE = "cte" + MaterializedView = "materializedview" + External = "external" + StreamingTable = "streamingtable" + +@dataclass +class DatabricksIncludePolicy(Policy): + database: bool = True + schema: bool = True + identifier: bool = True + + +@dataclass +class DatabricksQuotePolicy(Policy): + database: bool = True + schema: bool = True + identifier: bool = True +