atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ayub Khan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ATLAS-1612) Regression: DSL search using a non-unique attribute results in empty response
Date Wed, 01 Mar 2017 13:29:45 GMT
Ayub Khan created ATLAS-1612:
--------------------------------

             Summary: Regression: DSL search using a non-unique attribute 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
            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 - " sample where name='sampl_column'"



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message