[ 
https://issues.apache.org/jira/browse/ATLAS-1612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Madhan Neethiraj resolved ATLAS-1612.
-------------------------------------
       Resolution: Not A Problem
    Fix Version/s:     (was: trunk)

> Regression: DSL search using a non-unique attribute of user-defined types 
> results in empty response
> ---------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-1612
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1612
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: trunk, 0.8-incubating
>            Reporter: Ayub Pathan
>            Assignee: Vimal Sharma
>            Priority: Blocker
>             Fix For: 0.8-incubating
>
>
> Steps to repro:
> 1. Create a user defined type like below
> {noformat}
> {
> "enumTypes":[
>   ],
>   "structTypes":[
>   ],
>   "traitTypes":[
>   ],
>   "classTypes":[
>     {
>       "superTypes":[
>       ],
>       
> "hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType",
>       "typeName":"sample",
>       "typeDescription":null,
>       "typeVersion":"1.0",
>       "attributeDefinitions":[
>         {
>           "name":"name",
>           "dataTypeName":"string",
>           "multiplicity":"required",
>           "isComposite":false,
>           "isUnique":false,
>           "isIndexable":false,
>           "reverseAttributeName":null
>         }
>       ]
>     }
>   ]
> }
> {noformat}
> 2. create an entity of above type
> {noformat}
>       {
>         
> "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
>         "id":{
>           
> "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
>           "id":"-16993187400044476",
>           "version":0,
>           "typeName":"sample",
>           "state":"ACTIVE"
>         },
>         "typeName":"sample",
>         "values":{
>           "name":"simple_column"
>         },
>         "traitNames":[
>         ],
>         "traits":{
>         },
>         "systemAttributes":{
>           "createdBy":null,
>           "modifiedBy":null,
>           "createdTime":null,
>           "modifiedTime":null
>         }
>       }
> {noformat}
> 3. Now perform a dsl search using below query - "query": "sample where name = 
> \"sample_column\"",



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to