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

[3.0]CONTAINS empty list or empty dict return unexpected result #8653

Closed
lightjiao opened this issue Nov 12, 2018 · 4 comments
Closed

[3.0]CONTAINS empty list or empty dict return unexpected result #8653

lightjiao opened this issue Nov 12, 2018 · 4 comments
Assignees
Labels
Milestone

Comments

@lightjiao
Copy link

OrientDB Version: 3.0.10

Java Version: 1.8.0_102

OS: centos 6.8

Expected behavior

select from v where test contains []

return record which test value is [[]]

Actual behavior

looks like return all the records that have test field

Steps to reproduce

create 4 records
create vertex v content {"name": "jack", "age": 22}
create vertex v content {"name": "rose", "age": 22, "test": [[]]}
create vertex v content {"name": "pete", "age": 22, "test": [{}]}
create vertex v content {"name": "david", "age": 22, "test": ["hello"]}

select record

select from v where test contains []
return three record ( rose, pete and david ), looks like return all the records that have `test` field

select from v where test contains {}
return one record and looks work fine.

Thanks reading

@luigidellaquila luigidellaquila self-assigned this Nov 12, 2018
@luigidellaquila
Copy link
Member

Hi @lightjiao

I'd say it's a bug, I'll check it asap

Thanks

Luigi

@lightjiao
Copy link
Author

Hi @luigidellaquila
Is there any fix about this issue ?

Thanks.

@luigidellaquila
Copy link
Member

Hi @lightjiao

Sorry, I'm still working on it, I'll keep you updated

Thanks

Luigi

luigidellaquila added a commit that referenced this issue Nov 27, 2018
@luigidellaquila
Copy link
Member

Hi @lightjiao

I pushed a fix for this problem, it will be released with v 3.0.12

Thanks

Luigi

@luigidellaquila luigidellaquila added this to the 3.0.12 milestone Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants