run-cache 2.0.0__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.
Files changed (45) hide show
  1. {run_cache-2.0.0 → run_cache-2.0.2}/PKG-INFO +1 -1
  2. run_cache-2.0.2/src/dbt_run_cache/_version.py +1 -0
  3. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/adapters/base.py +9 -1
  4. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/adapters/bigquery.py +1 -1
  5. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/adapters/snowflake.py +1 -0
  6. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/cli/main.py +4 -1
  7. run_cache-2.0.0/src/dbt_run_cache/_version.py +0 -1
  8. {run_cache-2.0.0 → run_cache-2.0.2}/.gitignore +0 -0
  9. {run_cache-2.0.0 → run_cache-2.0.2}/pyproject.toml +0 -0
  10. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/__init__.py +0 -0
  11. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/_typing.py +0 -0
  12. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/adapters/__init__.py +0 -0
  13. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/adapters/clock.py +0 -0
  14. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/adapters/common.py +0 -0
  15. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/adapters/databricks.py +0 -0
  16. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/adapters/postgres.py +0 -0
  17. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/auth/__init__.py +0 -0
  18. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/auth/grpc.py +0 -0
  19. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/auth/oauth_clients.py +0 -0
  20. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/auth/sso.py +0 -0
  21. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/auth/sso_server.py +0 -0
  22. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/auth/utils.py +0 -0
  23. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/cli/__init__.py +0 -0
  24. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/cli/auth.py +0 -0
  25. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/cli/explainer.py +0 -0
  26. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/config.py +0 -0
  27. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/decision_logger.py +0 -0
  28. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/dev_cloner.py +0 -0
  29. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/dispatcher.py +0 -0
  30. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/errors.py +0 -0
  31. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/events.py +0 -0
  32. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/git.py +0 -0
  33. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/grpc/__init__.py +0 -0
  34. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/grpc/client.py +0 -0
  35. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/grpc/interceptors.py +0 -0
  36. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/plugin.py +0 -0
  37. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/profiles.py +0 -0
  38. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/relation.py +0 -0
  39. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/run_cache.py +0 -0
  40. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/runner.py +0 -0
  41. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/selector.py +0 -0
  42. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/session.py +0 -0
  43. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/system_info.py +0 -0
  44. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/utils.py +0 -0
  45. {run_cache-2.0.0 → run_cache-2.0.2}/src/dbt_run_cache/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: run-cache
3
- Version: 2.0.0
3
+ Version: 2.0.2
4
4
  Summary: dbt plugin that skips redundant model executions by caching results from previous runs
5
5
  Project-URL: Homepage, https://runcache.com
6
6
  License: Copyright (c) 2026 Fivetran, Inc.
@@ -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 table.db.lower() == "information_schema"
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("information_schema.")
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)
@@ -14,9 +14,12 @@ from dbt_run_cache.cli.explainer import Explainer
14
14
  from dbt_run_cache.grpc.client import QueryCacheGrpcClient
15
15
 
16
16
 
17
- @click.group()
17
+ @click.group(invoke_without_command=True)
18
18
  @click.pass_context
19
19
  def cli(ctx: click.Context) -> None:
20
+ if ctx.invoked_subcommand is None:
21
+ click.echo(ctx.get_help())
22
+ ctx.exit(0)
20
23
  ctx.ensure_object(dict)
21
24
  # TODO: Ideally use dbt to get the project root and log path
22
25
  # alternative is to parse the dbt project yml file to get log path
@@ -1 +0,0 @@
1
- __version__ = "2.0.0"
File without changes
File without changes