run-cache 2.0.1__tar.gz → 2.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {run_cache-2.0.1 → run_cache-2.0.2}/PKG-INFO +1 -1
- run_cache-2.0.2/src/dbt_run_cache/_version.py +1 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/adapters/base.py +9 -1
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/adapters/bigquery.py +1 -1
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/adapters/snowflake.py +1 -0
- run_cache-2.0.1/src/dbt_run_cache/_version.py +0 -1
- {run_cache-2.0.1 → run_cache-2.0.2}/.gitignore +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/pyproject.toml +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/__init__.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/_typing.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/adapters/__init__.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/adapters/clock.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/adapters/common.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/adapters/databricks.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/adapters/postgres.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/auth/__init__.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/auth/grpc.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/auth/oauth_clients.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/auth/sso.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/auth/sso_server.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/auth/utils.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/cli/__init__.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/cli/auth.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/cli/explainer.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/cli/main.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/config.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/decision_logger.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/dev_cloner.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/dispatcher.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/errors.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/events.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/git.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/grpc/__init__.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/grpc/client.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/grpc/interceptors.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/plugin.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/profiles.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/relation.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/run_cache.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/runner.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/selector.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/session.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/system_info.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/utils.py +0 -0
- {run_cache-2.0.1 → run_cache-2.0.2}/src/dbt_run_cache/version.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.0.2"
|
|
@@ -47,6 +47,11 @@ class BaseAdapterExtension(abc.ABC):
|
|
|
47
47
|
for the duration of the thread's lifetime (until close() is called)."""
|
|
48
48
|
SHOULD_RELEASE_CONNECTION: bool = False
|
|
49
49
|
|
|
50
|
+
SYSTEM_METADATA_CATALOGS: t.List[str] = []
|
|
51
|
+
"""Catalogs that should not have their last modified / view definition tracked"""
|
|
52
|
+
SYSTEM_METADATA_SCHEMAS: t.List[str] = ["information_schema"]
|
|
53
|
+
"""Schemas that should not have their last modified / view definition tracked"""
|
|
54
|
+
|
|
50
55
|
_CONNECTION_BARRIER_TIMEOUT_SECONDS: float = 2.0
|
|
51
56
|
|
|
52
57
|
def __init__(
|
|
@@ -726,4 +731,7 @@ class BaseAdapterExtension(abc.ABC):
|
|
|
726
731
|
These are typically virtual objects exposed by the database that dont have a last modified / view definition,
|
|
727
732
|
so should be short-circuited
|
|
728
733
|
"""
|
|
729
|
-
return
|
|
734
|
+
return (
|
|
735
|
+
table.catalog.lower() in self.SYSTEM_METADATA_CATALOGS
|
|
736
|
+
or table.db.lower() in self.SYSTEM_METADATA_SCHEMAS
|
|
737
|
+
)
|
|
@@ -184,7 +184,7 @@ class BigQueryAdapterExtension(BaseAdapterExtension):
|
|
|
184
184
|
return bq_table
|
|
185
185
|
|
|
186
186
|
def _is_system_metadata_table(self, table: exp.Table) -> bool:
|
|
187
|
-
return table.name.lower().startswith("
|
|
187
|
+
return any(table.name.lower().startswith(f"{s}.") for s in self.SYSTEM_METADATA_SCHEMAS)
|
|
188
188
|
|
|
189
189
|
@staticmethod
|
|
190
190
|
def _to_table_id(table: exp.Table) -> str:
|
|
@@ -30,6 +30,7 @@ if t.TYPE_CHECKING:
|
|
|
30
30
|
|
|
31
31
|
class SnowflakeAdapterExtension(BaseAdapterExtension):
|
|
32
32
|
DEFAULT_SCHEMA_NAME: str | None = "public"
|
|
33
|
+
SYSTEM_METADATA_CATALOGS: t.List[str] = ["snowflake"]
|
|
33
34
|
|
|
34
35
|
def __init__(self, *args: t.Any, **kwargs: t.Any) -> None:
|
|
35
36
|
super().__init__(*args, **kwargs)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.0.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|