Skip to content

Commit dc58047

Browse files
committed
run_udf: Simplified and clarified the schema for data - no functional change. #515
1 parent cd73c5d commit dc58047

File tree

3 files changed

+9
-30
lines changed

3 files changed

+9
-30
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3838
- `filter_spatial`: Clarified that masking is applied using the given geometries. [#469](https://github.com/Open-EO/openeo-processes/issues/469)
3939
- `load_collection` and `load_stac`: Clarified that scale and offset are not applied automatically when loading the data. [#503](https://github.com/Open-EO/openeo-processes/issues/503)
4040
- `mod`: Clarified behavior for y = 0
41+
- `run_udf`: Simplified and clarified the schema for `data` - no functional change.
4142
- `sqrt`: Clarified that NaN is returned for negative numbers.
4243
- Clarify allowed `FeatureCollection` geometries in `load_collection`, `mask_polygon`, `apply_polygon`, and `load_stac` [#527](https://github.com/Open-EO/openeo-processes/issues/527)
4344

proposals/run_udf_externally.json

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,10 @@
1111
"parameters": [
1212
{
1313
"name": "data",
14-
"description": "The data to be passed to the UDF.",
15-
"schema": [
16-
{
17-
"title": "Array",
18-
"type": "array",
19-
"minItems": 1,
20-
"items": {
21-
"description": "Any data type."
22-
}
23-
},
24-
{
25-
"title": "Single Value",
26-
"description": "A single value of any data type."
27-
}
28-
]
14+
"description": "The data to be passed to the UDF.\n\nThe data must be given in a way that the UDF can understand it. Usually, `run_udf` is executed as part of a data cube process such as `reduce_dimension` and in this case the process would expect an array of values as provided in the parameter `data` by `reduce_dimension`. Please refer to the documentation of the UDF runtime for details on how to provide the data.",
15+
"schema": {
16+
"description": "A value of any data type."
17+
}
2918
},
3019
{
3120
"name": "url",

run_udf.json

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,10 @@
1010
"parameters": [
1111
{
1212
"name": "data",
13-
"description": "The data to be passed to the UDF.",
14-
"schema": [
15-
{
16-
"title": "Array",
17-
"type": "array",
18-
"minItems": 1,
19-
"items": {
20-
"description": "Any data type."
21-
}
22-
},
23-
{
24-
"title": "Single Value",
25-
"description": "A single value of any data type."
26-
}
27-
]
13+
"description": "The data to be passed to the UDF.\n\nThe data must be given in a way that the UDF can understand it. Usually, `run_udf` is executed as part of a data cube process such as `reduce_dimension` and in this case the process would expect an array of values as provided in the parameter `data` by `reduce_dimension`. Please refer to the documentation of the UDF runtime for details on how to provide the data.",
14+
"schema": {
15+
"description": "A value of any data type."
16+
}
2817
},
2918
{
3019
"name": "udf",

0 commit comments

Comments
 (0)