moose-lib 0.6.138__tar.gz → 0.6.140__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.
- {moose_lib-0.6.138 → moose_lib-0.6.140}/PKG-INFO +1 -1
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2/olap_table.py +9 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/internal.py +4 -3
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib.egg-info/PKG-INFO +1 -1
- {moose_lib-0.6.138 → moose_lib-0.6.140}/README.md +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/__init__.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/blocks.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/clients/__init__.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/clients/redis_client.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/commons.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/config/__init__.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/config/config_file.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/config/runtime.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/data_models.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2/__init__.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2/_registry.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2/consumption.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2/ingest_api.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2/ingest_pipeline.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2/life_cycle.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2/materialized_view.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2/registry.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2/sql_resource.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2/stream.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2/types.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2/view.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2/web_app.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2/web_app_helpers.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2/workflow.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/dmv2_serializer.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/main.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/query_builder.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/query_param.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/streaming/__init__.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/streaming/streaming_function_runner.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/utilities/__init__.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib/utilities/sql.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib.egg-info/SOURCES.txt +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib.egg-info/dependency_links.txt +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib.egg-info/requires.txt +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/moose_lib.egg-info/top_level.txt +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/setup.cfg +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/setup.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/tests/__init__.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/tests/conftest.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/tests/test_moose.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/tests/test_olap_table_versioning.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/tests/test_query_builder.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/tests/test_redis_client.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/tests/test_s3queue_config.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/tests/test_simple_aggregate.py +0 -0
- {moose_lib-0.6.138 → moose_lib-0.6.140}/tests/test_web_app.py +0 -0
|
@@ -128,6 +128,15 @@ class OlapConfig(BaseModel):
|
|
|
128
128
|
metadata: Optional[dict] = None
|
|
129
129
|
life_cycle: Optional[LifeCycle] = None
|
|
130
130
|
settings: Optional[dict[str, str]] = None
|
|
131
|
+
# Optional secondary/data-skipping indexes
|
|
132
|
+
class TableIndex(BaseModel):
|
|
133
|
+
name: str
|
|
134
|
+
expression: str
|
|
135
|
+
type: str
|
|
136
|
+
arguments: Optional[list[str]] = None
|
|
137
|
+
granularity: int
|
|
138
|
+
|
|
139
|
+
indexes: list[TableIndex] = []
|
|
131
140
|
|
|
132
141
|
def model_post_init(self, __context):
|
|
133
142
|
has_fields = bool(self.order_by_fields)
|
|
@@ -21,8 +21,7 @@ from moose_lib.dmv2 import (
|
|
|
21
21
|
get_workflows,
|
|
22
22
|
get_web_apps,
|
|
23
23
|
OlapTable,
|
|
24
|
-
|
|
25
|
-
MaterializedView,
|
|
24
|
+
OlapConfig,
|
|
26
25
|
SqlResource
|
|
27
26
|
)
|
|
28
27
|
from moose_lib.dmv2.stream import KafkaSchemaConfig
|
|
@@ -167,7 +166,8 @@ class TableConfig(BaseModel):
|
|
|
167
166
|
version: Optional[str] = None
|
|
168
167
|
metadata: Optional[dict] = None
|
|
169
168
|
life_cycle: Optional[str] = None
|
|
170
|
-
table_settings: Optional[
|
|
169
|
+
table_settings: Optional[dict[str, str]] = None
|
|
170
|
+
indexes: list[OlapConfig.TableIndex] = []
|
|
171
171
|
|
|
172
172
|
|
|
173
173
|
class TopicConfig(BaseModel):
|
|
@@ -607,6 +607,7 @@ def to_infra_map() -> dict:
|
|
|
607
607
|
life_cycle=table.config.life_cycle.value if table.config.life_cycle else None,
|
|
608
608
|
# Map 'settings' to 'table_settings' for internal use
|
|
609
609
|
table_settings=table_settings if table_settings else None,
|
|
610
|
+
indexes=table.config.indexes,
|
|
610
611
|
)
|
|
611
612
|
|
|
612
613
|
for name, stream in get_streams().items():
|
|
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
|
|
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
|