-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prepare empty classes for change comparisons
- Loading branch information
Showing
5 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
dbt/adapters/timescaledb/timescaledb_continuous_aggregate_config_change_collection.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from dataclasses import dataclass | ||
|
||
from dbt.adapters.postgres.relation_configs.materialized_view import ( | ||
PostgresMaterializedViewConfigChangeCollection, | ||
) | ||
|
||
|
||
@dataclass | ||
class TimescaleDBContinuousAggregateConfigChangeCollection(PostgresMaterializedViewConfigChangeCollection): | ||
pass |
10 changes: 10 additions & 0 deletions
10
dbt/adapters/timescaledb/timescaledb_hypertable_config_change_collection.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from dataclasses import dataclass | ||
|
||
from dbt.adapters.postgres.relation_configs.materialized_view import ( | ||
PostgresMaterializedViewConfigChangeCollection, | ||
) | ||
|
||
|
||
@dataclass | ||
class TimescaleDBHypertableConfigChangeCollection(PostgresMaterializedViewConfigChangeCollection): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from typing import Optional | ||
|
||
from dbt.adapters.contracts.relation import RelationConfig | ||
from dbt.adapters.postgres.relation import PostgresRelation | ||
from dbt.adapters.relation_configs import ( | ||
RelationResults, | ||
) | ||
from dbt.adapters.timescaledb.timescaledb_continuous_aggregate_config_change_collection import ( | ||
TimescaleDBContinuousAggregateConfigChangeCollection, | ||
) | ||
from dbt.adapters.timescaledb.timescaledb_hypertable_config_change_collection import ( | ||
TimescaleDBHypertableConfigChangeCollection, | ||
) | ||
|
||
|
||
class TimescaleDBRelation(PostgresRelation): | ||
pass | ||
|
||
def get_hypertable_config_change_collection( | ||
self, relation_results: RelationResults, relation_config: RelationConfig | ||
) -> Optional[TimescaleDBHypertableConfigChangeCollection]: | ||
return self.get_materialized_view_config_change_collection( | ||
relation_results=relation_results, relation_config=relation_config | ||
) | ||
|
||
def get_continuous_aggregate_config_change_collection( | ||
self, relation_results: RelationResults, relation_config: RelationConfig | ||
) -> Optional[TimescaleDBContinuousAggregateConfigChangeCollection]: | ||
return self.get_materialized_view_config_change_collection( | ||
relation_results=relation_results, relation_config=relation_config | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters