moose-lib 0.4.175__tar.gz → 0.4.176__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 (24) hide show
  1. {moose_lib-0.4.175 → moose_lib-0.4.176}/PKG-INFO +1 -1
  2. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib/data_models.py +7 -1
  3. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib.egg-info/PKG-INFO +1 -1
  4. {moose_lib-0.4.175 → moose_lib-0.4.176}/README.md +0 -0
  5. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib/__init__.py +0 -0
  6. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib/blocks.py +0 -0
  7. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib/commons.py +0 -0
  8. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib/dmv2-serializer.py +0 -0
  9. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib/dmv2.py +0 -0
  10. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib/internal.py +0 -0
  11. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib/main.py +0 -0
  12. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib/query_param.py +0 -0
  13. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib/streaming/__init__.py +0 -0
  14. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib/streaming/streaming_function_runner.py +0 -0
  15. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib/tasks.py +0 -0
  16. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib.egg-info/SOURCES.txt +0 -0
  17. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib.egg-info/dependency_links.txt +0 -0
  18. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib.egg-info/requires.txt +0 -0
  19. {moose_lib-0.4.175 → moose_lib-0.4.176}/moose_lib.egg-info/top_level.txt +0 -0
  20. {moose_lib-0.4.175 → moose_lib-0.4.176}/setup.cfg +0 -0
  21. {moose_lib-0.4.175 → moose_lib-0.4.176}/setup.py +0 -0
  22. {moose_lib-0.4.175 → moose_lib-0.4.176}/tests/__init__.py +0 -0
  23. {moose_lib-0.4.175 → moose_lib-0.4.176}/tests/conftest.py +0 -0
  24. {moose_lib-0.4.175 → moose_lib-0.4.176}/tests/test_moose.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moose_lib
3
- Version: 0.4.175
3
+ Version: 0.4.176
4
4
  Home-page: https://www.fiveonefour.com/moose
5
5
  Author: Fiveonefour Labs Inc.
6
6
  Author-email: support@fiveonefour.com
@@ -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
- data_type = "Float"
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moose_lib
3
- Version: 0.4.175
3
+ Version: 0.4.176
4
4
  Home-page: https://www.fiveonefour.com/moose
5
5
  Author: Fiveonefour Labs Inc.
6
6
  Author-email: support@fiveonefour.com
File without changes
File without changes
File without changes