-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run_udf
: Simplified and clarified the schema for data
#515
#519
base: draft
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -10,21 +10,10 @@ | |||||
"parameters": [ | ||||||
{ | ||||||
"name": "data", | ||||||
"description": "The data to be passed to the UDF.", | ||||||
"schema": [ | ||||||
{ | ||||||
"title": "Array", | ||||||
"type": "array", | ||||||
"minItems": 1, | ||||||
"items": { | ||||||
"description": "Any data type." | ||||||
} | ||||||
}, | ||||||
{ | ||||||
"title": "Single Value", | ||||||
"description": "A single value of any data type." | ||||||
} | ||||||
] | ||||||
"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, this process 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.", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
From my UDF-usage experience this statement sounds a bit backwards. When working with UDFs in practice, the data and its form are a given and you have to tweak your UDF to match that form. I know that it's possible to have processes before Also note that there isn't necessarily direct correspondence between the
Likewise: the UDF runtime docs can provide little help here, it's the parent process that dictates the form of Attempt to tweak the description:
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm also fine to just leave the description as is ("The data to be passed to the UDF."), to avoid bike-shedding this too much. |
||||||
"schema": { | ||||||
"description": "A value of any data type." | ||||||
} | ||||||
}, | ||||||
{ | ||||||
"name": "udf", | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see
run_udf
comment