feldera 0.103.0__tar.gz → 0.104.0__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 feldera might be problematic. Click here for more details.
- {feldera-0.103.0 → feldera-0.104.0}/PKG-INFO +1 -1
- {feldera-0.103.0 → feldera-0.104.0}/feldera.egg-info/PKG-INFO +1 -1
- {feldera-0.103.0 → feldera-0.104.0}/pyproject.toml +1 -1
- {feldera-0.103.0 → feldera-0.104.0}/tests/test_shared_pipeline0.py +14 -13
- {feldera-0.103.0 → feldera-0.104.0}/README.md +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/__init__.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/_callback_runner.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/_helpers.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/enums.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/output_handler.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/pipeline.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/pipeline_builder.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/rest/__init__.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/rest/_helpers.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/rest/_httprequests.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/rest/config.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/rest/errors.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/rest/feldera_client.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/rest/feldera_config.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/rest/pipeline.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/rest/sql_table.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/rest/sql_view.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/runtime_config.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera/stats.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera.egg-info/SOURCES.txt +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera.egg-info/dependency_links.txt +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera.egg-info/requires.txt +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/feldera.egg-info/top_level.txt +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/setup.cfg +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/tests/test_pipeline_builder.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/tests/test_shared_pipeline1.py +0 -0
- {feldera-0.103.0 → feldera-0.104.0}/tests/test_udf.py +0 -0
|
@@ -157,8 +157,8 @@ class TestPipeline(SharedTestPipeline):
|
|
|
157
157
|
"""
|
|
158
158
|
df_students = pd.read_csv("tests/students.csv")
|
|
159
159
|
df_grades = pd.read_csv("tests/grades.csv")
|
|
160
|
-
self.pipeline.start()
|
|
161
160
|
out = self.pipeline.listen("average_scores")
|
|
161
|
+
self.pipeline.start()
|
|
162
162
|
self.pipeline.input_pandas("students", df_students)
|
|
163
163
|
self.pipeline.input_pandas("grades", df_grades)
|
|
164
164
|
self.pipeline.wait_for_completion(True)
|
|
@@ -168,8 +168,8 @@ class TestPipeline(SharedTestPipeline):
|
|
|
168
168
|
def test_pipeline_get(self):
|
|
169
169
|
df_students = pd.read_csv("tests/students.csv")
|
|
170
170
|
df_grades = pd.read_csv("tests/grades.csv")
|
|
171
|
-
self.pipeline.start()
|
|
172
171
|
out = self.pipeline.listen("average_scores")
|
|
172
|
+
self.pipeline.start()
|
|
173
173
|
self.pipeline.input_pandas("students", df_students)
|
|
174
174
|
self.pipeline.input_pandas("grades", df_grades)
|
|
175
175
|
self.pipeline.wait_for_completion(True)
|
|
@@ -183,8 +183,9 @@ class TestPipeline(SharedTestPipeline):
|
|
|
183
183
|
out = self.pipeline.listen("average_scores")
|
|
184
184
|
self.pipeline.input_pandas("students", df_students)
|
|
185
185
|
self.pipeline.input_pandas("grades", df_grades)
|
|
186
|
-
self.pipeline.wait_for_completion(
|
|
186
|
+
self.pipeline.wait_for_completion(False)
|
|
187
187
|
df = out.to_pandas()
|
|
188
|
+
self.pipeline.stop(force=True)
|
|
188
189
|
assert df.shape[0] == 100
|
|
189
190
|
|
|
190
191
|
def test_foreach_chunk(self):
|
|
@@ -328,8 +329,8 @@ class TestPipeline(SharedTestPipeline):
|
|
|
328
329
|
|
|
329
330
|
def test_input_json0(self):
|
|
330
331
|
data = {"insert": {"id": 1}}
|
|
331
|
-
self.pipeline.start()
|
|
332
332
|
out = self.pipeline.listen("v0")
|
|
333
|
+
self.pipeline.start()
|
|
333
334
|
self.pipeline.input_json("tbl", data, update_format="insert_delete")
|
|
334
335
|
self.pipeline.wait_for_completion(True)
|
|
335
336
|
out_data = out.to_dict()
|
|
@@ -338,8 +339,8 @@ class TestPipeline(SharedTestPipeline):
|
|
|
338
339
|
|
|
339
340
|
def test_input_json1(self):
|
|
340
341
|
data = [{"id": 1}, {"id": 2}]
|
|
341
|
-
self.pipeline.start()
|
|
342
342
|
out = self.pipeline.listen("v0")
|
|
343
|
+
self.pipeline.start()
|
|
343
344
|
self.pipeline.input_json("tbl", data)
|
|
344
345
|
self.pipeline.wait_for_completion(True)
|
|
345
346
|
out_data = out.to_dict()
|
|
@@ -349,8 +350,8 @@ class TestPipeline(SharedTestPipeline):
|
|
|
349
350
|
@enterprise_only
|
|
350
351
|
def test_suspend(self):
|
|
351
352
|
data = {"insert": {"id": 1}}
|
|
352
|
-
self.pipeline.start()
|
|
353
353
|
out = self.pipeline.listen("v0")
|
|
354
|
+
self.pipeline.start()
|
|
354
355
|
self.pipeline.input_json("tbl", data, update_format="insert_delete")
|
|
355
356
|
self.pipeline.wait_for_completion(False)
|
|
356
357
|
self.pipeline.stop(force=False)
|
|
@@ -379,8 +380,8 @@ class TestPipeline(SharedTestPipeline):
|
|
|
379
380
|
],
|
|
380
381
|
}
|
|
381
382
|
)
|
|
382
|
-
self.pipeline.start()
|
|
383
383
|
out = self.pipeline.listen("v_timestamp")
|
|
384
|
+
self.pipeline.start()
|
|
384
385
|
self.pipeline.input_pandas("tbl_timestamp", df)
|
|
385
386
|
self.pipeline.wait_for_completion(True)
|
|
386
387
|
df_out = out.to_pandas()
|
|
@@ -393,8 +394,8 @@ class TestPipeline(SharedTestPipeline):
|
|
|
393
394
|
"""
|
|
394
395
|
data = [{"c1": [12, 34, 56]}]
|
|
395
396
|
expected_data = [{"c1": [34, 56], "insert_delete": 1}]
|
|
396
|
-
self.pipeline.start()
|
|
397
397
|
out = self.pipeline.listen("v_binary")
|
|
398
|
+
self.pipeline.start()
|
|
398
399
|
self.pipeline.input_json("tbl_binary", data=data)
|
|
399
400
|
self.pipeline.wait_for_completion(True)
|
|
400
401
|
got = out.to_dict()
|
|
@@ -409,8 +410,8 @@ class TestPipeline(SharedTestPipeline):
|
|
|
409
410
|
|
|
410
411
|
data = [{"c1": 2.25}]
|
|
411
412
|
expected = [{"c1": Decimal("5.00"), "insert_delete": 1}]
|
|
412
|
-
self.pipeline.start()
|
|
413
413
|
out = self.pipeline.listen("v_decimal")
|
|
414
|
+
self.pipeline.start()
|
|
414
415
|
self.pipeline.input_json("tbl_decimal", data=data)
|
|
415
416
|
self.pipeline.wait_for_completion(True)
|
|
416
417
|
got = out.to_dict()
|
|
@@ -464,8 +465,8 @@ class TestPipeline(SharedTestPipeline):
|
|
|
464
465
|
"insert_delete": 1,
|
|
465
466
|
}
|
|
466
467
|
]
|
|
467
|
-
self.pipeline.start()
|
|
468
468
|
out = self.pipeline.listen("v_datetime")
|
|
469
|
+
self.pipeline.start()
|
|
469
470
|
self.pipeline.input_json("tbl_datetime", data)
|
|
470
471
|
self.pipeline.wait_for_completion(True)
|
|
471
472
|
got = out.to_dict()
|
|
@@ -491,8 +492,8 @@ class TestPipeline(SharedTestPipeline):
|
|
|
491
492
|
"c8": "c",
|
|
492
493
|
}
|
|
493
494
|
]
|
|
494
|
-
self.pipeline.start()
|
|
495
495
|
out = self.pipeline.listen("v_simple")
|
|
496
|
+
self.pipeline.start()
|
|
496
497
|
self.pipeline.input_json("tbl_simple", data)
|
|
497
498
|
self.pipeline.wait_for_completion(True)
|
|
498
499
|
got = out.to_dict()
|
|
@@ -517,8 +518,8 @@ class TestPipeline(SharedTestPipeline):
|
|
|
517
518
|
got = out.to_dict()
|
|
518
519
|
assert expected == got
|
|
519
520
|
# Second round: single dict
|
|
520
|
-
self.pipeline.start()
|
|
521
521
|
out = self.pipeline.listen("v_map")
|
|
522
|
+
self.pipeline.start()
|
|
522
523
|
self.pipeline.input_json("tbl_map", {"c1": {"a": 1, "b": 2}})
|
|
523
524
|
self.pipeline.wait_for_completion(True)
|
|
524
525
|
got = out.to_dict()
|
|
@@ -532,8 +533,8 @@ class TestPipeline(SharedTestPipeline):
|
|
|
532
533
|
import uuid
|
|
533
534
|
|
|
534
535
|
data = [{"c0": uuid.uuid4()}]
|
|
535
|
-
self.pipeline.start()
|
|
536
536
|
out = self.pipeline.listen("v_uuid")
|
|
537
|
+
self.pipeline.start()
|
|
537
538
|
self.pipeline.input_json("tbl_uuid", data)
|
|
538
539
|
self.pipeline.wait_for_completion(True)
|
|
539
540
|
got = out.to_dict()
|
|
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
|