You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In your implementation, what you can do is add an iterator for atomizing sequences, and in the translationvisitor for the XQuery 3.1 parser, you can insert that iterator in the middle between an argument and a function call iterator whenever the type is atomic with any arity.
@mstevan
test-set: max.xml, min.xml
test-cases: fn-max-19 and fn-min-19
@team
Seems that min and max function do not work on arrays
Input:
min([1,2,3,4,5])
Output:
⚠️ ️There was an error.
Code: [XPTY0004] (this code can be looked up in the documentation and specifications).
Location information: file:/Users/mstevan/Documents/:LINE:1:COLUMN:0:
Invalid return type for function min. array cannot be promoted to type atomic?.
Expected output:
1
The text was updated successfully, but these errors were encountered: