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

Agreggate function (size) not working properly after filter is applied. #357

Closed
lakshan93 opened this issue Jun 7, 2017 · 2 comments
Closed

Comments

@lakshan93
Copy link

There are list of objects
{
"list": [
{
"value": 1,
"present": "yes"
},
{
"value": 2,
"present": "no"
},
{
"value": 3,
"present": "yes"
}
]
}

The path $.list[?(@.present == 'yes')].value.size() gives me wrong result.
Expected: 2
Actual: [null, null]

Looks like rather it calculate the size of the list, it calculate individuals elements inside list and since there is no string processing, it is returning null for each element, which is not expected.

@jochenberger
Copy link
Contributor

More or less a duplicate of #272

@kallestenflo
Copy link
Contributor

Duplicate (or related to) #272

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

No branches or pull requests

3 participants