feldera 0.109.0__tar.gz → 0.110.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.109.0 → feldera-0.110.0}/PKG-INFO +1 -1
- {feldera-0.109.0 → feldera-0.110.0}/feldera/pipeline_builder.py +8 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/runtime_config.py +0 -5
- {feldera-0.109.0 → feldera-0.110.0}/feldera.egg-info/PKG-INFO +1 -1
- {feldera-0.109.0 → feldera-0.110.0}/pyproject.toml +1 -1
- {feldera-0.109.0 → feldera-0.110.0}/README.md +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/__init__.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/_callback_runner.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/_helpers.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/enums.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/output_handler.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/pipeline.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/rest/__init__.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/rest/_helpers.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/rest/_httprequests.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/rest/config.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/rest/errors.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/rest/feldera_client.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/rest/feldera_config.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/rest/pipeline.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/rest/sql_table.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/rest/sql_view.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera/stats.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera.egg-info/SOURCES.txt +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera.egg-info/dependency_links.txt +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera.egg-info/requires.txt +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/feldera.egg-info/top_level.txt +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/setup.cfg +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/tests/test_pipeline_builder.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/tests/test_shared_pipeline0.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/tests/test_shared_pipeline1.py +0 -0
- {feldera-0.109.0 → feldera-0.110.0}/tests/test_udf.py +0 -0
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import os
|
|
2
|
+
from typing import Optional
|
|
3
|
+
|
|
1
4
|
from feldera.rest.feldera_client import FelderaClient
|
|
2
5
|
from feldera.rest.pipeline import Pipeline as InnerPipeline
|
|
3
6
|
from feldera.pipeline import Pipeline
|
|
@@ -32,6 +35,7 @@ class PipelineBuilder:
|
|
|
32
35
|
description: str = "",
|
|
33
36
|
compilation_profile: CompilationProfile = CompilationProfile.OPTIMIZED,
|
|
34
37
|
runtime_config: RuntimeConfig = RuntimeConfig.default(),
|
|
38
|
+
runtime_version: Optional[str] = None,
|
|
35
39
|
):
|
|
36
40
|
self.client: FelderaClient = client
|
|
37
41
|
self.name: str | None = name
|
|
@@ -41,6 +45,9 @@ class PipelineBuilder:
|
|
|
41
45
|
self.udf_toml: str = udf_toml
|
|
42
46
|
self.compilation_profile: CompilationProfile = compilation_profile
|
|
43
47
|
self.runtime_config: RuntimeConfig = runtime_config
|
|
48
|
+
self.runtime_version: Optional[str] = runtime_version or os.environ.get(
|
|
49
|
+
"FELDERA_RUNTIME_VERSION"
|
|
50
|
+
)
|
|
44
51
|
|
|
45
52
|
def create(self) -> Pipeline:
|
|
46
53
|
"""
|
|
@@ -67,6 +74,7 @@ class PipelineBuilder:
|
|
|
67
74
|
udf_toml=self.udf_toml,
|
|
68
75
|
program_config={
|
|
69
76
|
"profile": self.compilation_profile.value,
|
|
77
|
+
"runtime_version": self.runtime_version,
|
|
70
78
|
},
|
|
71
79
|
runtime_config=self.runtime_config.to_dict(),
|
|
72
80
|
)
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import os
|
|
2
1
|
from typing import Optional, Any, Mapping
|
|
3
2
|
from feldera.enums import FaultToleranceModel
|
|
4
3
|
|
|
@@ -79,7 +78,6 @@ class RuntimeConfig:
|
|
|
79
78
|
clock_resolution_usecs: Optional[int] = None,
|
|
80
79
|
provisioning_timeout_secs: Optional[int] = None,
|
|
81
80
|
resources: Optional[Resources] = None,
|
|
82
|
-
runtime_version: Optional[str] = None,
|
|
83
81
|
fault_tolerance_model: Optional[FaultToleranceModel] = None,
|
|
84
82
|
checkpoint_interval_secs: Optional[int] = None,
|
|
85
83
|
):
|
|
@@ -91,9 +89,6 @@ class RuntimeConfig:
|
|
|
91
89
|
self.min_batch_size_records = min_batch_size_records
|
|
92
90
|
self.clock_resolution_usecs = clock_resolution_usecs
|
|
93
91
|
self.provisioning_timeout_secs = provisioning_timeout_secs
|
|
94
|
-
self.runtime_version = runtime_version or os.environ.get(
|
|
95
|
-
"FELDERA_RUNTIME_VERSION"
|
|
96
|
-
)
|
|
97
92
|
if fault_tolerance_model is not None:
|
|
98
93
|
self.fault_tolerance = {
|
|
99
94
|
"model": str(fault_tolerance_model),
|
|
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
|