-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/71239/
-----------------------------------------------------------
(Updated Nov. 19, 2020, 4:19 p.m.)
Review request for atlas, Ashutosh Mestry, Madhan Neethiraj, and Sarath
Subramanian.
Changes
-------
The updated patch has been rebase as per the updated changes in master.
Bugs: Atlas-3359
https://issues.apache.org/jira/browse/Atlas-3359
Repository: atlas
Description
-------
When defining a unique attribute for a relationshipDef . the instance for this
newly updated relationshipDef does not treats the unique attribute as unique
but rather treats as normal attribute only (that means the duplication of
values is allowed just like other normal attributes).
Diffs (updated)
-----
graphdb/api/src/main/java/org/apache/atlas/repository/graphdb/AtlasIndexQuery.java
2edca64
graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasJanusIndexQuery.java
ff3fd4a
intg/src/main/java/org/apache/atlas/AtlasErrorCode.java a14e43a
repository/src/main/java/org/apache/atlas/repository/graph/GraphBackedSearchIndexer.java
d0ffb85
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasGraphUtilsV2.java
b2be41c
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasRelationshipStoreV2.java
8d74489
Diff: https://reviews.apache.org/r/71239/diff/4/
Changes: https://reviews.apache.org/r/71239/diff/3-4/
Testing
-------
1.Created a relationship typedef between type1 & type2 with attribute "attr1"
which is unique (set "IsUnique" to true).
2. Created entity1 (type1) and entity2(type2) and created a relationship
instance between them with "attr1" value , say "value1".
3. Created entity3 (type1) and entity4(type2) and created a relationship
instance between them with "attr1" value with the same value "value1".
Expected the relationship creation between entity3 and entity4 would fail
because a relationship with "attr1 " with "value1" is already created between
entity1 and entity2. But request passed and the relationship is created
successfully.
Thanks,
mayank jain