moose-lib 0.6.86__tar.gz → 0.6.88__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.

Files changed (47) hide show
  1. {moose_lib-0.6.86 → moose_lib-0.6.88}/PKG-INFO +2 -1
  2. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/blocks.py +6 -57
  3. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib.egg-info/PKG-INFO +2 -1
  4. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib.egg-info/requires.txt +1 -0
  5. {moose_lib-0.6.86 → moose_lib-0.6.88}/setup.py +1 -0
  6. {moose_lib-0.6.86 → moose_lib-0.6.88}/README.md +0 -0
  7. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/__init__.py +0 -0
  8. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/clients/__init__.py +0 -0
  9. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/clients/redis_client.py +0 -0
  10. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/commons.py +0 -0
  11. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/config/__init__.py +0 -0
  12. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/config/config_file.py +0 -0
  13. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/config/runtime.py +0 -0
  14. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/data_models.py +0 -0
  15. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/dmv2/__init__.py +0 -0
  16. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/dmv2/_registry.py +0 -0
  17. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/dmv2/consumption.py +0 -0
  18. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/dmv2/ingest_api.py +0 -0
  19. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/dmv2/ingest_pipeline.py +0 -0
  20. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/dmv2/life_cycle.py +0 -0
  21. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/dmv2/materialized_view.py +0 -0
  22. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/dmv2/olap_table.py +0 -0
  23. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/dmv2/registry.py +0 -0
  24. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/dmv2/sql_resource.py +0 -0
  25. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/dmv2/stream.py +0 -0
  26. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/dmv2/types.py +0 -0
  27. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/dmv2/view.py +0 -0
  28. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/dmv2/workflow.py +0 -0
  29. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/dmv2_serializer.py +0 -0
  30. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/internal.py +0 -0
  31. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/main.py +0 -0
  32. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/query_builder.py +0 -0
  33. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/query_param.py +0 -0
  34. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/streaming/__init__.py +0 -0
  35. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/streaming/streaming_function_runner.py +0 -0
  36. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/utilities/__init__.py +0 -0
  37. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib/utilities/sql.py +0 -0
  38. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib.egg-info/SOURCES.txt +0 -0
  39. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib.egg-info/dependency_links.txt +0 -0
  40. {moose_lib-0.6.86 → moose_lib-0.6.88}/moose_lib.egg-info/top_level.txt +0 -0
  41. {moose_lib-0.6.86 → moose_lib-0.6.88}/setup.cfg +0 -0
  42. {moose_lib-0.6.86 → moose_lib-0.6.88}/tests/__init__.py +0 -0
  43. {moose_lib-0.6.86 → moose_lib-0.6.88}/tests/conftest.py +0 -0
  44. {moose_lib-0.6.86 → moose_lib-0.6.88}/tests/test_moose.py +0 -0
  45. {moose_lib-0.6.86 → moose_lib-0.6.88}/tests/test_query_builder.py +0 -0
  46. {moose_lib-0.6.86 → moose_lib-0.6.88}/tests/test_redis_client.py +0 -0
  47. {moose_lib-0.6.86 → moose_lib-0.6.88}/tests/test_s3queue_config.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moose_lib
3
- Version: 0.6.86
3
+ Version: 0.6.88
4
4
  Home-page: https://www.fiveonefour.com/moose
5
5
  Author: Fiveonefour Labs Inc.
6
6
  Author-email: support@fiveonefour.com
@@ -14,6 +14,7 @@ Requires-Dist: redis>=6.2.0
14
14
  Requires-Dist: humanfriendly>=10.0
15
15
  Requires-Dist: clickhouse_connect>=0.7.16
16
16
  Requires-Dist: requests>=2.32.3
17
+ Requires-Dist: sqlglot[rs]>=27.16.3
17
18
  Dynamic: author
18
19
  Dynamic: author-email
19
20
  Dynamic: description
@@ -97,61 +97,10 @@ class TableConfig:
97
97
  columns: Dict[str, str]
98
98
  order_by: Optional[str] = None
99
99
 
100
- @classmethod
101
- def with_s3_queue(cls,
102
- name: str,
103
- columns: Dict[str, str],
104
- s3_path: str,
105
- format: str,
106
- order_by: Optional[str] = None,
107
- **kwargs) -> 'TableConfig':
108
- """Create a table with S3Queue engine"""
109
- return cls(
110
- name=name,
111
- columns=columns,
112
- engine=S3QueueEngine(s3_path=s3_path, format=format, **kwargs),
113
- order_by=order_by
114
- )
115
-
116
- @classmethod
117
- def with_merge_tree(cls,
118
- name: str,
119
- columns: Dict[str, str],
120
- order_by: Optional[str] = None,
121
- deduplicate: bool = False,
122
- **kwargs) -> 'TableConfig':
123
- """Create a table with MergeTree or ReplacingMergeTree engine"""
124
- engine = ReplacingMergeTreeEngine() if deduplicate else MergeTreeEngine()
125
- return cls(
126
- name=name,
127
- columns=columns,
128
- engine=engine,
129
- order_by=order_by
130
- )
131
-
132
- @classmethod
133
- def with_replacing_merge_tree(cls,
134
- name: str,
135
- columns: Dict[str, str],
136
- order_by: Optional[str] = None,
137
- ver: Optional[str] = None,
138
- is_deleted: Optional[str] = None,
139
- **kwargs) -> 'TableConfig':
140
- """Create a table with ReplacingMergeTree engine
141
-
142
- Args:
143
- name: Table name
144
- columns: Column definitions
145
- order_by: Order by clause
146
- ver: Optional version column name
147
- is_deleted: Optional is_deleted column name (requires ver)
148
- """
149
- return cls(
150
- name=name,
151
- columns=columns,
152
- engine=ReplacingMergeTreeEngine(ver=ver, is_deleted=is_deleted),
153
- order_by=order_by
154
- )
100
+ # Note: Factory methods (with_s3_queue, with_merge_tree, with_replacing_merge_tree)
101
+ # were removed in ENG-856. Use direct configuration instead, e.g.:
102
+ # TableConfig(name="table", columns={...}, engine=S3QueueEngine(s3_path="...", format="..."))
103
+ # TableConfig(name="table", columns={...}, engine=ReplacingMergeTreeEngine(ver="updated_at"))
155
104
 
156
105
  # ==========================
157
106
  # Legacy API Support (Deprecated)
@@ -204,8 +153,8 @@ def migrate_legacy_config(legacy: TableCreateOptions) -> TableConfig:
204
153
  # Show deprecation warning
205
154
  warnings.warn(
206
155
  "Using deprecated TableCreateOptions. Please migrate to TableConfig:\n"
207
- "- For S3Queue: Use TableConfig.with_s3_queue()\n"
208
- "- For deduplication: Use engine=ReplacingMergeTreeEngine()\n"
156
+ "- For S3Queue: Use TableConfig(name='table', columns={...}, engine=S3QueueEngine(s3_path='...', format='...'))\n"
157
+ "- For deduplication: Use TableConfig(name='table', columns={...}, engine=ReplacingMergeTreeEngine())\n"
209
158
  "See documentation for examples.",
210
159
  DeprecationWarning,
211
160
  stacklevel=2
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moose_lib
3
- Version: 0.6.86
3
+ Version: 0.6.88
4
4
  Home-page: https://www.fiveonefour.com/moose
5
5
  Author: Fiveonefour Labs Inc.
6
6
  Author-email: support@fiveonefour.com
@@ -14,6 +14,7 @@ Requires-Dist: redis>=6.2.0
14
14
  Requires-Dist: humanfriendly>=10.0
15
15
  Requires-Dist: clickhouse_connect>=0.7.16
16
16
  Requires-Dist: requests>=2.32.3
17
+ Requires-Dist: sqlglot[rs]>=27.16.3
17
18
  Dynamic: author
18
19
  Dynamic: author-email
19
20
  Dynamic: description
@@ -6,3 +6,4 @@ redis>=6.2.0
6
6
  humanfriendly>=10.0
7
7
  clickhouse_connect>=0.7.16
8
8
  requests>=2.32.3
9
+ sqlglot[rs]>=27.16.3
@@ -32,5 +32,6 @@ setup(
32
32
  "humanfriendly>=10.0",
33
33
  "clickhouse_connect>=0.7.16",
34
34
  "requests>=2.32.3",
35
+ "sqlglot[rs]>=27.16.3",
35
36
  ],
36
37
  )
File without changes
File without changes
File without changes
File without changes
File without changes