Skip to content

Commit

Permalink
new policies
Browse files Browse the repository at this point in the history
  • Loading branch information
dataders committed Sep 29, 2023
1 parent 611a581 commit ddce57f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions dbt/adapters/databricks/relation_configs/policies.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ddce57f

Please sign in to comment.