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
Using IN operator on a property that has UNIQUE_HASH_INDEX index cause an error
Expected/Actual behavior
The following queries should return a few records but first query throws java.lang.UnsupportedOperationException: Cannot evaluate id IN [1, 2] on index User.id error. (I think it's because the id property uses UNIQUE_HASH_INDEX index!) but second query works fine (the key property uses UNIQUE index).
Queries:
select from User where id in [1, 2]
select from User where key in [1, 2]
Steps to reproduce
Run these commands:
/* schema */
create class User extends V;
create property User.idInteger;
create property User.keyInteger;
CREATEINDEXUser.id ON User (id) UNIQUE_HASH_INDEX;
CREATEINDEXUser.key ON User (key) UNIQUE;
/* data */
create vertex User set id =1, key =1;
create vertex User set id =2, key =2;
create vertex User set id =3, key =3;
selectfrom User where id in [1, 2] /* it cause an error */
The text was updated successfully, but these errors were encountered:
OrientDB Version: 3.0.0
Java Version: 1.8
OS: Linux
Using
IN
operator on a property that hasUNIQUE_HASH_INDEX
index cause an errorExpected/Actual behavior
The following queries should return a few records but first query throws
java.lang.UnsupportedOperationException: Cannot evaluate id IN [1, 2] on index User.id
error. (I think it's because theid
property usesUNIQUE_HASH_INDEX
index!) but second query works fine (thekey
property usesUNIQUE
index).Queries:
select from User where id in [1, 2]
select from User where key in [1, 2]
Steps to reproduce
Run these commands:
The text was updated successfully, but these errors were encountered: