moose-lib 0.6.93__tar.gz → 0.6.94__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.
Potentially problematic release.
This version of moose-lib might be problematic. Click here for more details.
- {moose_lib-0.6.93 → moose_lib-0.6.94}/PKG-INFO +1 -1
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/data_models.py +8 -2
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib.egg-info/PKG-INFO +1 -1
- {moose_lib-0.6.93 → moose_lib-0.6.94}/README.md +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/__init__.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/blocks.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/clients/__init__.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/clients/redis_client.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/commons.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/config/__init__.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/config/config_file.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/config/runtime.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/dmv2/__init__.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/dmv2/_registry.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/dmv2/consumption.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/dmv2/ingest_api.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/dmv2/ingest_pipeline.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/dmv2/life_cycle.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/dmv2/materialized_view.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/dmv2/olap_table.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/dmv2/registry.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/dmv2/sql_resource.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/dmv2/stream.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/dmv2/types.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/dmv2/view.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/dmv2/workflow.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/dmv2_serializer.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/internal.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/main.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/query_builder.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/query_param.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/streaming/__init__.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/streaming/streaming_function_runner.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/utilities/__init__.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib/utilities/sql.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib.egg-info/SOURCES.txt +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib.egg-info/dependency_links.txt +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib.egg-info/requires.txt +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/moose_lib.egg-info/top_level.txt +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/setup.cfg +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/setup.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/tests/__init__.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/tests/conftest.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/tests/test_moose.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/tests/test_query_builder.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/tests/test_redis_client.py +0 -0
- {moose_lib-0.6.93 → moose_lib-0.6.94}/tests/test_s3queue_config.py +0 -0
|
@@ -235,17 +235,23 @@ def py_type_to_column_type(t: type, mds: list[Any]) -> Tuple[bool, list[Any], Da
|
|
|
235
235
|
elif not isclass(t):
|
|
236
236
|
raise ValueError(f"Unknown type {t}")
|
|
237
237
|
elif issubclass(t, BaseModel):
|
|
238
|
+
columns = _to_columns(t)
|
|
239
|
+
for c in columns:
|
|
240
|
+
if c.default is not None:
|
|
241
|
+
raise ValueError(
|
|
242
|
+
"Default in inner field. Put ClickHouseDefault in top level field."
|
|
243
|
+
)
|
|
238
244
|
if any(md == "ClickHouseNamedTuple" for md in mds):
|
|
239
245
|
data_type = NamedTupleType(
|
|
240
246
|
fields=[(
|
|
241
247
|
column.name,
|
|
242
248
|
column.data_type
|
|
243
|
-
) for column in
|
|
249
|
+
) for column in columns],
|
|
244
250
|
)
|
|
245
251
|
else:
|
|
246
252
|
data_type = Nested(
|
|
247
253
|
name=t.__name__,
|
|
248
|
-
columns=
|
|
254
|
+
columns=columns,
|
|
249
255
|
)
|
|
250
256
|
elif issubclass(t, Enum):
|
|
251
257
|
values = [EnumValue(name=member.name, value=member.value) for member in t]
|
|
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
|