query-cache-common 1.22.0__tar.gz → 1.24.0__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 (23) hide show
  1. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/PKG-INFO +2 -2
  2. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/models/services/clone_service_models.py +1 -0
  3. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/models/services/execution_service_models.py +4 -0
  4. query_cache_common-1.24.0/src/query_cache_common/models/services/selector_service_models.py +48 -0
  5. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/models/services/sql_service_models.py +2 -0
  6. query_cache_common-1.22.0/src/query_cache_common/models/services/state_selector_service_models.py +0 -40
  7. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/.gitignore +0 -0
  8. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/pyproject.toml +0 -0
  9. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/__init__.py +0 -0
  10. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/auth.py +0 -0
  11. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/constants.py +0 -0
  12. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/decorators.py +0 -0
  13. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/models/__init__.py +0 -0
  14. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/models/_typing.py +0 -0
  15. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/models/base.py +0 -0
  16. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/models/converters.py +0 -0
  17. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/models/fields.py +0 -0
  18. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/models/services/__init__.py +0 -0
  19. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/models/services/client_telemetry_service_models.py +0 -0
  20. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/models/services/client_validation_service_models.py +0 -0
  21. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/models/services/explain_service_models.py +0 -0
  22. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/models/shared_models.py +0 -0
  23. {query_cache_common-1.22.0 → query_cache_common-1.24.0}/src/query_cache_common/utils.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: query-cache-common
3
- Version: 1.22.0
3
+ Version: 1.24.0
4
4
  Summary: Common code for Query Cache shared across client and server
5
5
  License:
6
6
  Apache License
@@ -33,6 +33,7 @@ class CloneRequest(BaseSerDeModel):
33
33
  clone_source_table_type: t.Optional[str] = None
34
34
  table_properties: t.Optional[TableProperties] = None
35
35
  clone_chain_depth_limit: t.Optional[int] = None
36
+ table_namespace: t.Optional[str] = None
36
37
 
37
38
 
38
39
  @proto_dataclass(clone_service_pb2.ReadyToCloneResponse)
@@ -51,6 +51,7 @@ class SQLExecution(BaseSerDeModel):
51
51
  dbt_node_state: t.Optional[shared_models.DbtNodeState] = None
52
52
  default_schema: t.Optional[str] = None
53
53
  from_speculative_submit: bool = False
54
+ table_namespace: t.Optional[str] = None
54
55
 
55
56
  @classmethod
56
57
  def from_submit_sql_request(
@@ -68,6 +69,7 @@ class SQLExecution(BaseSerDeModel):
68
69
  labels=req.labels,
69
70
  dbt_node_state=req.dbt_node_state,
70
71
  default_schema=req.default_schema,
72
+ table_namespace=req.table_namespace,
71
73
  )
72
74
 
73
75
 
@@ -80,6 +82,7 @@ class ValuesExecution(BaseSerDeModel):
80
82
  semantic_extras: t.Dict[str, str] = field(default_factory=dict)
81
83
  labels: t.Dict[str, str] = field(default_factory=dict)
82
84
  dbt_node_state: t.Optional[shared_models.DbtNodeState] = None
85
+ table_namespace: t.Optional[str] = None
83
86
 
84
87
  @classmethod
85
88
  def from_submit_values_request(
@@ -93,6 +96,7 @@ class ValuesExecution(BaseSerDeModel):
93
96
  semantic_extras=req.semantic_extras,
94
97
  labels=req.labels,
95
98
  dbt_node_state=req.dbt_node_state,
99
+ table_namespace=req.table_namespace,
96
100
  )
97
101
 
98
102
 
@@ -0,0 +1,48 @@
1
+ from __future__ import annotations
2
+
3
+ import typing as t
4
+
5
+ from query_cache_protobuf.query_cache.services import selector_service_pb2
6
+
7
+ from query_cache_common.decorators import proto_dataclass, proto_enum
8
+ from query_cache_common.models.base import BaseSerDeEnum, BaseSerDeModel
9
+
10
+
11
+ @proto_enum(selector_service_pb2.SelectorCriteria)
12
+ class SelectorCriteria(BaseSerDeEnum):
13
+ SC_UNSPECIFIED = "SC_UNSPECIFIED"
14
+ MODIFIED = "MODIFIED"
15
+ NEW = "NEW"
16
+ UNMODIFIED = "UNMODIFIED"
17
+ OLD = "OLD"
18
+ BODY = "BODY"
19
+ CONFIGS = "CONFIGS"
20
+ RELATION = "RELATION"
21
+ PERSISTED_DESCRIPTIONS = "PERSISTED_DESCRIPTIONS"
22
+ MACROS = "MACROS"
23
+ CONTRACT = "CONTRACT"
24
+
25
+
26
+ @proto_dataclass(selector_service_pb2.DbtNodeData)
27
+ class DbtNodeData(BaseSerDeModel):
28
+ node_unique_id: str
29
+ node_hash: str
30
+ node_body_hash: t.Optional[str] = None
31
+ node_configs_hash: t.Optional[str] = None
32
+ node_persisted_descriptions_hash: t.Optional[str] = None
33
+ node_macros_hash: t.Optional[str] = None
34
+ node_contract_hash: t.Optional[str] = None
35
+ node_database_representation: t.Optional[str] = None
36
+
37
+
38
+ @proto_dataclass(selector_service_pb2.SelectorRequest)
39
+ class SelectorRequest(BaseSerDeModel):
40
+ target: str
41
+ project_id: str
42
+ nodes: t.List[DbtNodeData]
43
+ selector_criteria: SelectorCriteria
44
+
45
+
46
+ @proto_dataclass(selector_service_pb2.SelectorResponse)
47
+ class SelectorResponse(BaseSerDeModel):
48
+ node_unique_ids: t.List[str]
@@ -29,6 +29,7 @@ class SubmitValuesRequest(BaseSerDeModel):
29
29
  clone_table_properties: t.Optional[TableProperties] = None
30
30
  clone_chain_depth_limit: t.Optional[int] = None
31
31
  dbt_node_state: t.Optional[shared_models.DbtNodeState] = None
32
+ table_namespace: t.Optional[str] = None
32
33
 
33
34
 
34
35
  @proto_dataclass(sql_service_pb2.SubmitEnrichedSQLRequest)
@@ -52,6 +53,7 @@ class SubmitEnrichedSQLRequest(BaseSerDeModel):
52
53
  dbt_node_state: t.Optional[shared_models.DbtNodeState] = None
53
54
  default_schema: t.Optional[str] = None
54
55
  compare_unrendered_code: bool = False
56
+ table_namespace: t.Optional[str] = None
55
57
 
56
58
 
57
59
  @proto_dataclass(sql_service_pb2.QueryHashMatchMetadataInfo)
@@ -1,40 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import typing as t
4
-
5
- from query_cache_protobuf.query_cache.services import state_selector_service_pb2
6
-
7
- from query_cache_common.decorators import proto_dataclass, proto_enum
8
- from query_cache_common.models import shared_models
9
- from query_cache_common.models.base import BaseSerDeEnum, BaseSerDeModel
10
-
11
-
12
- @proto_dataclass(state_selector_service_pb2.StateSelectorRequest)
13
- class StateSelectorRequest(BaseSerDeModel):
14
- target: str
15
- nodes: t.List[shared_models.DbtNodeState]
16
- selector_criteria: SelectorCriteria
17
- project_id: t.Optional[str] = None
18
- project_name: t.Optional[str] = None
19
-
20
-
21
- @proto_enum(state_selector_service_pb2.SelectorCriteria)
22
- class SelectorCriteria(BaseSerDeEnum):
23
- MODIFIED = "MODIFIED"
24
- NEW = "NEW"
25
- UNMODIFIED = "UNMODIFIED"
26
- OLD = "OLD"
27
- BODY = "BODY"
28
- CONFIGS = "CONFIGS"
29
- RELATION = "RELATION"
30
- PERSISTED_DESCRIPTIONS = "PERSISTED_DESCRIPTIONS"
31
- MACROS = "MACROS"
32
- CONTRACT = "CONTRACT"
33
-
34
-
35
- @proto_dataclass(state_selector_service_pb2.StateSelectorResponse)
36
- class StateSelectorResponse(BaseSerDeModel):
37
- modified_ids: t.List[str]
38
- new_ids: t.List[str]
39
- unmodified_ids: t.List[str]
40
- old_ids: t.List[str]