Skip to content

Commit

Permalink
Only remove StatsItem, StatsDict, TableMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke committed May 29, 2024
1 parent 6fa4fc3 commit 20ef880
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
1 change: 1 addition & 0 deletions core/dbt/artifacts/schemas/catalog/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# alias to latest
from dbt.artifacts.schemas.catalog.v1.catalog import * # noqa
from dbt_common.artifacts.catalog import StatsDict, StatsItem, TableMetadata # noqa
23 changes: 1 addition & 22 deletions core/dbt/artifacts/schemas/catalog/v1/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
BaseArtifactMetadata,
schema_version,
)
from dbt_common.artifacts.catalog import StatsDict, TableMetadata
from dbt_common.dataclass_schema import dbtClassMixin
from dbt_common.utils.formatting import lowercase

Expand All @@ -18,18 +19,6 @@
)


@dataclass
class StatsItem(dbtClassMixin):
id: str
label: str
value: Primitive
include: bool
description: Optional[str] = None


StatsDict = Dict[str, StatsItem]


@dataclass
class ColumnMetadata(dbtClassMixin):
type: str
Expand All @@ -41,16 +30,6 @@ class ColumnMetadata(dbtClassMixin):
ColumnMap = Dict[str, ColumnMetadata]


@dataclass
class TableMetadata(dbtClassMixin):
type: str
schema: str
name: str
database: Optional[str] = None
comment: Optional[str] = None
owner: Optional[str] = None


@dataclass
class CatalogTable(dbtClassMixin):
metadata: TableMetadata
Expand Down
1 change: 0 additions & 1 deletion core/dbt/version/__init__.py

This file was deleted.

0 comments on commit 20ef880

Please sign in to comment.