-
-
Notifications
You must be signed in to change notification settings - Fork 874
Closed
Description
OrientDB Version: 3.0.0
Java Version: 1.8
OS: Linux
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.id Integer;
create property User.key Integer;
CREATE INDEX User.id ON User (id) UNIQUE_HASH_INDEX;
CREATE INDEX User.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;
select from User where id in [1, 2] /* it cause an error */
Metadata
Metadata
Assignees
Labels
buglegacy not used anymorelegacy not used anymore