feldera 0.35.0__tar.gz → 0.37.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.35.0 → feldera-0.37.0}/PKG-INFO +1 -1
- {feldera-0.35.0 → feldera-0.37.0}/feldera/runtime_config.py +19 -3
- {feldera-0.35.0 → feldera-0.37.0}/feldera.egg-info/PKG-INFO +1 -1
- {feldera-0.35.0 → feldera-0.37.0}/pyproject.toml +1 -1
- {feldera-0.35.0 → feldera-0.37.0}/tests/test_pipeline_builder.py +14 -8
- {feldera-0.35.0 → feldera-0.37.0}/tests/test_udf.py +6 -6
- {feldera-0.35.0 → feldera-0.37.0}/README.md +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera/__init__.py +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera/_callback_runner.py +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera/_helpers.py +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera/enums.py +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera/output_handler.py +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera/pipeline.py +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera/pipeline_builder.py +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera/rest/__init__.py +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera/rest/_httprequests.py +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera/rest/config.py +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera/rest/errors.py +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera/rest/feldera_client.py +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera/rest/pipeline.py +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera/rest/sql_table.py +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera/rest/sql_view.py +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera.egg-info/SOURCES.txt +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera.egg-info/dependency_links.txt +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera.egg-info/requires.txt +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/feldera.egg-info/top_level.txt +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/setup.cfg +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/tests/test_pipeline.py +0 -0
- {feldera-0.35.0 → feldera-0.37.0}/tests/test_variant.py +0 -0
|
@@ -37,6 +37,24 @@ class Resources:
|
|
|
37
37
|
self.__dict__.update(config)
|
|
38
38
|
|
|
39
39
|
|
|
40
|
+
class Storage:
|
|
41
|
+
"""Storage configuration for a pipeline.
|
|
42
|
+
|
|
43
|
+
:param min_storage_bytes: The minimum estimated number of bytes in a batch of data to write it to storage.
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def __init__(
|
|
47
|
+
self,
|
|
48
|
+
config: Optional[Mapping[str, Any]] = None,
|
|
49
|
+
min_storage_bytes: Optional[int] = None,
|
|
50
|
+
):
|
|
51
|
+
config = config or {}
|
|
52
|
+
|
|
53
|
+
self.min_storage_bytes = min_storage_bytes
|
|
54
|
+
|
|
55
|
+
self.__dict__.update(config)
|
|
56
|
+
|
|
57
|
+
|
|
40
58
|
class RuntimeConfig:
|
|
41
59
|
"""
|
|
42
60
|
Runtime configuration class to define the configuration for a pipeline.
|
|
@@ -45,13 +63,12 @@ class RuntimeConfig:
|
|
|
45
63
|
def __init__(
|
|
46
64
|
self,
|
|
47
65
|
workers: Optional[int] = None,
|
|
48
|
-
storage: Optional[
|
|
66
|
+
storage: Optional[Storage] = None,
|
|
49
67
|
tracing: Optional[bool] = False,
|
|
50
68
|
tracing_endpoint_jaeger: Optional[str] = "",
|
|
51
69
|
cpu_profiler: bool = True,
|
|
52
70
|
max_buffering_delay_usecs: int = 0,
|
|
53
71
|
min_batch_size_records: int = 0,
|
|
54
|
-
min_storage_bytes: Optional[int] = None,
|
|
55
72
|
clock_resolution_usecs: Optional[int] = None,
|
|
56
73
|
resources: Optional[Resources] = None,
|
|
57
74
|
):
|
|
@@ -62,7 +79,6 @@ class RuntimeConfig:
|
|
|
62
79
|
self.cpu_profiler = cpu_profiler
|
|
63
80
|
self.max_buffering_delay_usecs = max_buffering_delay_usecs
|
|
64
81
|
self.min_batch_size_records = min_batch_size_records
|
|
65
|
-
self.min_storage_bytes = min_storage_bytes
|
|
66
82
|
self.clock_resolution_usecs = clock_resolution_usecs
|
|
67
83
|
if resources is not None:
|
|
68
84
|
self.resources = resources.__dict__
|
|
@@ -492,14 +492,20 @@ Code snippet:
|
|
|
492
492
|
"format": {{
|
|
493
493
|
"name": "avro",
|
|
494
494
|
"config": {{
|
|
495
|
-
"schema": {
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
}
|
|
495
|
+
"schema": {
|
|
496
|
+
json.dumps(
|
|
497
|
+
json.dumps(
|
|
498
|
+
{
|
|
499
|
+
"type": "record",
|
|
500
|
+
"name": "items",
|
|
501
|
+
"fields": [
|
|
502
|
+
{"name": "id", "type": ["null", "int"]},
|
|
503
|
+
{"name": "name", "type": ["null", "string"]},
|
|
504
|
+
],
|
|
505
|
+
}
|
|
506
|
+
)
|
|
507
|
+
)
|
|
508
|
+
}
|
|
503
509
|
}}
|
|
504
510
|
}}
|
|
505
511
|
}}
|
|
@@ -193,16 +193,16 @@ pub fn t2t(i: Option<Time>) -> Result<Option<Time>, Box<dyn std::error::Error>>
|
|
|
193
193
|
pub fn nt2nt(i: Time) -> Result<Time, Box<dyn std::error::Error>> {
|
|
194
194
|
Ok(i)
|
|
195
195
|
}
|
|
196
|
-
pub fn arr2arr(i: Option<
|
|
196
|
+
pub fn arr2arr(i: Option<Array<Option<i32>>>) -> Result<Option<Array<Option<i32>>>, Box<dyn std::error::Error>> {
|
|
197
197
|
Ok(i)
|
|
198
198
|
}
|
|
199
|
-
pub fn narr2narr(i:
|
|
199
|
+
pub fn narr2narr(i: Array<Option<i32>>) -> Result<Array<Option<i32>>, Box<dyn std::error::Error>> {
|
|
200
200
|
Ok(i)
|
|
201
201
|
}
|
|
202
|
-
pub fn map2map(i: Option<
|
|
202
|
+
pub fn map2map(i: Option<Map<SqlString, Option<SqlString>>>) -> Result<Option<Map<SqlString, Option<SqlString>>>, Box<dyn std::error::Error>> {
|
|
203
203
|
Ok(i)
|
|
204
204
|
}
|
|
205
|
-
pub fn nmap2nmap(i:
|
|
205
|
+
pub fn nmap2nmap(i: Map<SqlString, Option<SqlString>>) -> Result<Map<SqlString, Option<SqlString>>, Box<dyn std::error::Error>> {
|
|
206
206
|
Ok(i)
|
|
207
207
|
}
|
|
208
208
|
pub fn var2var(i: Option<Variant>) -> Result<Option<Variant>, Box<dyn std::error::Error>> {
|
|
@@ -217,10 +217,10 @@ pub fn dec2dec(i: Option<Decimal>) -> Result<Option<Decimal>, Box<dyn std::error
|
|
|
217
217
|
pub fn ndec2ndec(i: Decimal) -> Result<Decimal, Box<dyn std::error::Error>> {
|
|
218
218
|
Ok(i)
|
|
219
219
|
}
|
|
220
|
-
pub fn str2str(i: Option<
|
|
220
|
+
pub fn str2str(i: Option<SqlString>) -> Result<Option<SqlString>, Box<dyn std::error::Error>> {
|
|
221
221
|
Ok(i)
|
|
222
222
|
}
|
|
223
|
-
pub fn nstr2nstr(i:
|
|
223
|
+
pub fn nstr2nstr(i: SqlString) -> Result<SqlString, Box<dyn std::error::Error>> {
|
|
224
224
|
Ok(i)
|
|
225
225
|
}
|
|
226
226
|
// pub fn struct2struct(i: Option<struct_1>) -> Result<Option<struct_2>, Box<dyn std::error::Error>> {
|
|
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
|