Skip to content
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

Value Comparison not according to XQuery 3.1 #887

Open
mstevan opened this issue Jan 4, 2021 · 1 comment
Open

Value Comparison not according to XQuery 3.1 #887

mstevan opened this issue Jan 4, 2021 · 1 comment

Comments

@mstevan
Copy link
Contributor

mstevan commented Jan 4, 2021

@mstevan
test-set: prod/ValueComp.xml
test-cases: value-comparison-5, 6, 7

@team
The following 3 test-cases are not passing and according to XQuery 3.1 they should

Input: -> Expected output:
[3] eq 3 -> true
[3] le [3] -> true
[] eq 3 -> empty

Output:
⚠️ ️There was an error.

Code: [JNTY0004] (this code can be looked up in the documentation and specifications).

Location information: file:/Users/mstevan/Documents/:LINE:1:COLUMN:0:

Invalid args. Comparison can't be performed on array type

@ghislainfourny
Copy link
Member

ghislainfourny commented Jan 5, 2021

This is also because arrays get atomized in XQuery 3.1 (similar resolution for executing XQuery 3.1 than for function calls: insert an atomization expression in the middle in the XQuery translation visitor).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants