moose-lib 0.4.175__py3-none-any.whl → 0.4.177__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/data_models.py +7 -1
- {moose_lib-0.4.175.dist-info → moose_lib-0.4.177.dist-info}/METADATA +1 -1
- {moose_lib-0.4.175.dist-info → moose_lib-0.4.177.dist-info}/RECORD +5 -5
- {moose_lib-0.4.175.dist-info → moose_lib-0.4.177.dist-info}/WHEEL +1 -1
- {moose_lib-0.4.175.dist-info → moose_lib-0.4.177.dist-info}/top_level.txt +0 -0
moose_lib/data_models.py
CHANGED
@@ -146,7 +146,13 @@ def py_type_to_column_type(t: type, mds: list[Any]) -> Tuple[bool, list[Any], Da
|
|
146
146
|
else:
|
147
147
|
data_type = "Int"
|
148
148
|
elif t is float:
|
149
|
-
|
149
|
+
size = next((md for md in mds if isinstance(md, ClickhouseSize)), None)
|
150
|
+
if size is None or size.size == 8:
|
151
|
+
data_type = "Float64"
|
152
|
+
elif size.size == 4:
|
153
|
+
data_type = "Float32"
|
154
|
+
else:
|
155
|
+
raise ValueError(f"Unsupported float size {size.size}")
|
150
156
|
elif t is Decimal:
|
151
157
|
precision = next((md.max_digits for md in mds if hasattr(md, "max_digits")), 10)
|
152
158
|
scale = next((md.decimal_places for md in mds if hasattr(md, "decimal_places")), 0)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
moose_lib/__init__.py,sha256=VYCFk9Nlakd24JPEj7h1cMIeqjp0eofnmE-3jCtPwXM,138
|
2
2
|
moose_lib/blocks.py,sha256=_wdvC2NC_Y3MMEnB71WTgWbeQ--zPNHk19xjToJW0C0,3185
|
3
3
|
moose_lib/commons.py,sha256=BV5X78MuOWHiZV9bsWSN69JIvzTNWUi-gnuMiAtaO8A,2489
|
4
|
-
moose_lib/data_models.py,sha256=
|
4
|
+
moose_lib/data_models.py,sha256=HIC7TD5ZvDSwBdpsX0F0lZXz0LlN7-EV6Mmutd41LdU,8299
|
5
5
|
moose_lib/dmv2-serializer.py,sha256=CL_Pvvg8tJOT8Qk6hywDNzY8MYGhMVdTOw8arZi3jng,49
|
6
6
|
moose_lib/dmv2.py,sha256=T2RrdlWuctPCMNv7jiYaSqpLKWqjHWaXq914BXFEIyM,31758
|
7
7
|
moose_lib/internal.py,sha256=gREvC3XxBFN4i7JL5uMj0riCu_JUO2YyiMZvCokg1ME,13101
|
@@ -13,7 +13,7 @@ moose_lib/streaming/streaming_function_runner.py,sha256=K53lyzGLawAgKgrK3jreJrB7
|
|
13
13
|
tests/__init__.py,sha256=0Gh4yzPkkC3TzBGKhenpMIxJcRhyrrCfxLSfpTZnPMQ,53
|
14
14
|
tests/conftest.py,sha256=ZVJNbnr4DwbcqkTmePW6U01zAzE6QD0kNAEZjPG1f4s,169
|
15
15
|
tests/test_moose.py,sha256=mBsx_OYWmL8ppDzL_7Bd7xR6qf_i3-pCIO3wm2iQNaA,2136
|
16
|
-
moose_lib-0.4.
|
17
|
-
moose_lib-0.4.
|
18
|
-
moose_lib-0.4.
|
19
|
-
moose_lib-0.4.
|
16
|
+
moose_lib-0.4.177.dist-info/METADATA,sha256=4HrrfFwt3-tzPBt-h05pdFTZ4TClYn89mb9SXTs0bDM,575
|
17
|
+
moose_lib-0.4.177.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
18
|
+
moose_lib-0.4.177.dist-info/top_level.txt,sha256=XEns2-4aCmGp2XjJAeEH9TAUcGONLnSLy6ycT9FSJh8,16
|
19
|
+
moose_lib-0.4.177.dist-info/RECORD,,
|
File without changes
|