feldera 0.130.0__py3-none-any.whl → 0.131.0__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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: feldera
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.131.0
|
|
4
4
|
Summary: The feldera python client
|
|
5
5
|
Author-email: Feldera Team <dev@feldera.com>
|
|
6
6
|
License: MIT
|
|
@@ -84,73 +84,6 @@ make html
|
|
|
84
84
|
|
|
85
85
|
To clean the build, run `make clean`.
|
|
86
86
|
|
|
87
|
-
## Testing
|
|
88
|
-
|
|
89
|
-
To run unit tests:
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
cd python && python3 -m pytest tests/
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
- This will detect and run all test files that match the pattern `test_*.py` or
|
|
96
|
-
`*_test.py`.
|
|
97
|
-
- By default, the tests expect a running Feldera instance at `http://localhost:8080`.
|
|
98
|
-
To override the default endpoint, set the `FELDERA_HOST` environment variable.
|
|
99
|
-
|
|
100
|
-
To run tests from a specific file:
|
|
101
|
-
|
|
102
|
-
```bash
|
|
103
|
-
(cd python && python3 -m pytest ./tests/path-to-file.py)
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
To run a specific test:
|
|
107
|
-
|
|
108
|
-
```bash
|
|
109
|
-
uv run python -m pytest tests/test_shared_pipeline.py::TestPipeline::test_adhoc_query_hash -v
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
#### Running All Tests
|
|
113
|
-
|
|
114
|
-
The tests validate end-to-end correctness of SQL functionality. To
|
|
115
|
-
run the tests use:
|
|
116
|
-
|
|
117
|
-
```bash
|
|
118
|
-
cd python
|
|
119
|
-
PYTHONPATH=`pwd` ./tests/run-all-tests.sh
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
### Reducing Compilation Cycles
|
|
123
|
-
|
|
124
|
-
To reduce redundant compilation cycles during testing:
|
|
125
|
-
|
|
126
|
-
* **Inherit from `SharedTestPipeline`** instead of `unittest.TestCase`.
|
|
127
|
-
* **Define DDLs** (e.g., `CREATE TABLE`, `CREATE VIEW`) in the **docstring** of each test method.
|
|
128
|
-
* All DDLs from all test functions in the class are combined and compiled into a single pipeline.
|
|
129
|
-
* If a table or view is already defined in one test, it can be used directly in others without redefinition.
|
|
130
|
-
* Ensure that all table and view names are unique within the class.
|
|
131
|
-
* Use `@enterprise_only` on tests that require Enterprise features. Their DDLs will be skipped on OSS builds.
|
|
132
|
-
* Use `self.set_runtime_config(...)` to override the default pipeline config.
|
|
133
|
-
* Reset it at the end using `self.reset_runtime_config()`.
|
|
134
|
-
* Access the shared pipeline via `self.pipeline`.
|
|
135
|
-
|
|
136
|
-
#### Example
|
|
137
|
-
|
|
138
|
-
```python
|
|
139
|
-
from tests.shared_test_pipeline import SharedTestPipeline
|
|
140
|
-
|
|
141
|
-
class TestAverage(SharedTestPipeline):
|
|
142
|
-
def test_average(self):
|
|
143
|
-
"""
|
|
144
|
-
CREATE TABLE students(id INT, name STRING);
|
|
145
|
-
CREATE MATERIALIZED VIEW v AS SELECT * FROM students;
|
|
146
|
-
"""
|
|
147
|
-
...
|
|
148
|
-
self.pipeline.start()
|
|
149
|
-
self.pipeline.input_pandas("students", df)
|
|
150
|
-
self.pipeline.wait_for_completion(True)
|
|
151
|
-
...
|
|
152
|
-
```
|
|
153
|
-
|
|
154
87
|
## Linting and formatting
|
|
155
88
|
|
|
156
89
|
Use [Ruff] to run the lint checks that will be executed by the
|
|
@@ -17,7 +17,7 @@ feldera/rest/feldera_config.py,sha256=1pnGbLFMSLvp7Qh_OlPLALSKCSHIktNWKvx6gYU00U
|
|
|
17
17
|
feldera/rest/pipeline.py,sha256=Rmbflbwjvd86iZ5aSJ5b_bTSs6vgvEKQFwMZDtm0nxE,2835
|
|
18
18
|
feldera/rest/sql_table.py,sha256=qrw-YwMzx5T81zDefNO1KOx7EyypFz1vPwGBzSUB7kc,652
|
|
19
19
|
feldera/rest/sql_view.py,sha256=hN12mPM0mvwLCIPYywpb12s9Hd2Ws31IlTMXPriMisw,644
|
|
20
|
-
feldera-0.
|
|
21
|
-
feldera-0.
|
|
22
|
-
feldera-0.
|
|
23
|
-
feldera-0.
|
|
20
|
+
feldera-0.131.0.dist-info/METADATA,sha256=wqRKF-g1N0ZL6INiAWfBxw5BVyZzBzcroTzoUXSAaN8,2368
|
|
21
|
+
feldera-0.131.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
22
|
+
feldera-0.131.0.dist-info/top_level.txt,sha256=fB6yTqrQiO6RCbY1xP2T_mpPoTjDFtJvkJJodiee7d0,8
|
|
23
|
+
feldera-0.131.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|