[
https://issues.apache.org/jira/browse/ATLAS-1612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15897026#comment-15897026
]
Vimal Sharma commented on ATLAS-1612:
-------------------------------------
[~ayubkhan]
The issue is that the DSL query is not correct. The correct DSL query should be
"sample where name = \"simple_column\"" and not
"sample where name = \"sample_column\"". The first query produces the expected
results.
Please verify with the correct query. Marking the issue as resolved
> 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 Khan
> Assignee: Vimal Sharma
> Priority: Blocker
> Fix For: trunk, 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
(v6.3.15#6346)