moose-lib 0.6.148.dev3442438466__py3-none-any.whl → 0.6.283__py3-none-any.whl
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/__init__.py +34 -3
- moose_lib/blocks.py +416 -52
- moose_lib/clients/redis_client.py +26 -14
- moose_lib/commons.py +37 -30
- moose_lib/config/config_file.py +5 -1
- moose_lib/config/runtime.py +73 -34
- moose_lib/data_models.py +331 -61
- moose_lib/dmv2/__init__.py +69 -73
- moose_lib/dmv2/_registry.py +2 -1
- moose_lib/dmv2/_source_capture.py +37 -0
- moose_lib/dmv2/consumption.py +55 -32
- moose_lib/dmv2/ingest_api.py +9 -2
- moose_lib/dmv2/ingest_pipeline.py +35 -16
- moose_lib/dmv2/life_cycle.py +3 -1
- moose_lib/dmv2/materialized_view.py +24 -14
- moose_lib/dmv2/moose_model.py +165 -0
- moose_lib/dmv2/olap_table.py +299 -151
- moose_lib/dmv2/registry.py +18 -3
- moose_lib/dmv2/sql_resource.py +16 -8
- moose_lib/dmv2/stream.py +75 -23
- moose_lib/dmv2/types.py +14 -8
- moose_lib/dmv2/view.py +13 -6
- moose_lib/dmv2/web_app.py +11 -6
- moose_lib/dmv2/web_app_helpers.py +5 -1
- moose_lib/dmv2/workflow.py +37 -9
- moose_lib/internal.py +340 -56
- moose_lib/main.py +87 -56
- moose_lib/query_builder.py +18 -5
- moose_lib/query_param.py +54 -20
- moose_lib/secrets.py +122 -0
- moose_lib/streaming/streaming_function_runner.py +233 -117
- moose_lib/utilities/sql.py +0 -1
- {moose_lib-0.6.148.dev3442438466.dist-info → moose_lib-0.6.283.dist-info}/METADATA +18 -1
- moose_lib-0.6.283.dist-info/RECORD +63 -0
- tests/__init__.py +1 -1
- tests/conftest.py +6 -5
- tests/test_backward_compatibility.py +85 -0
- tests/test_cluster_validation.py +85 -0
- tests/test_codec.py +75 -0
- tests/test_column_formatting.py +80 -0
- tests/test_fixedstring.py +43 -0
- tests/test_iceberg_config.py +105 -0
- tests/test_int_types.py +211 -0
- tests/test_kafka_config.py +141 -0
- tests/test_materialized.py +74 -0
- tests/test_metadata.py +37 -0
- tests/test_moose.py +21 -30
- tests/test_moose_model.py +153 -0
- tests/test_olap_table_moosemodel.py +89 -0
- tests/test_olap_table_versioning.py +52 -58
- tests/test_query_builder.py +97 -9
- tests/test_redis_client.py +10 -3
- tests/test_s3queue_config.py +211 -110
- tests/test_secrets.py +239 -0
- tests/test_simple_aggregate.py +42 -40
- tests/test_web_app.py +11 -5
- moose_lib-0.6.148.dev3442438466.dist-info/RECORD +0 -47
- {moose_lib-0.6.148.dev3442438466.dist-info → moose_lib-0.6.283.dist-info}/WHEEL +0 -0
- {moose_lib-0.6.148.dev3442438466.dist-info → moose_lib-0.6.283.dist-info}/top_level.txt +0 -0
moose_lib/__init__.py
CHANGED
|
@@ -4,6 +4,8 @@ from .blocks import *
|
|
|
4
4
|
|
|
5
5
|
from .commons import *
|
|
6
6
|
|
|
7
|
+
from .secrets import moose_runtime_env
|
|
8
|
+
|
|
7
9
|
from .data_models import *
|
|
8
10
|
|
|
9
11
|
from .dmv2 import *
|
|
@@ -16,19 +18,48 @@ from .dmv2.materialized_view import MaterializedView, MaterializedViewOptions
|
|
|
16
18
|
from .blocks import (
|
|
17
19
|
# All engine classes
|
|
18
20
|
MergeTreeEngine,
|
|
19
|
-
ReplacingMergeTreeEngine,
|
|
21
|
+
ReplacingMergeTreeEngine,
|
|
20
22
|
AggregatingMergeTreeEngine,
|
|
21
23
|
SummingMergeTreeEngine,
|
|
24
|
+
CollapsingMergeTreeEngine,
|
|
25
|
+
VersionedCollapsingMergeTreeEngine,
|
|
22
26
|
ReplicatedMergeTreeEngine,
|
|
23
27
|
ReplicatedReplacingMergeTreeEngine,
|
|
24
28
|
ReplicatedAggregatingMergeTreeEngine,
|
|
25
29
|
ReplicatedSummingMergeTreeEngine,
|
|
30
|
+
ReplicatedCollapsingMergeTreeEngine,
|
|
31
|
+
ReplicatedVersionedCollapsingMergeTreeEngine,
|
|
26
32
|
S3QueueEngine,
|
|
33
|
+
IcebergS3Engine,
|
|
34
|
+
KafkaEngine,
|
|
27
35
|
EngineConfig,
|
|
28
36
|
# Legacy enum (already exported via .blocks import, but explicit for clarity)
|
|
29
|
-
ClickHouseEngines
|
|
37
|
+
ClickHouseEngines,
|
|
38
|
+
)
|
|
39
|
+
from .data_models import (
|
|
40
|
+
Key,
|
|
41
|
+
AggregateFunction,
|
|
42
|
+
StringToEnumMixin,
|
|
43
|
+
FixedString,
|
|
44
|
+
ClickhouseFixedStringSize,
|
|
45
|
+
ClickhouseDefault,
|
|
46
|
+
clickhouse_default,
|
|
47
|
+
ClickHouseTTL,
|
|
48
|
+
ClickHouseMaterialized,
|
|
49
|
+
ClickHouseCodec,
|
|
50
|
+
# Integer types
|
|
51
|
+
Int8,
|
|
52
|
+
Int16,
|
|
53
|
+
Int32,
|
|
54
|
+
Int64,
|
|
55
|
+
UInt8,
|
|
56
|
+
UInt16,
|
|
57
|
+
UInt32,
|
|
58
|
+
UInt64,
|
|
59
|
+
# Float types
|
|
60
|
+
Float32,
|
|
61
|
+
Float64,
|
|
30
62
|
)
|
|
31
|
-
from .data_models import Key, AggregateFunction, StringToEnumMixin
|
|
32
63
|
from .commons import Logger
|
|
33
64
|
|
|
34
65
|
from .query_builder import *
|