You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Nikhil Bonte (Jira)" <ji...@apache.org> on 2019/11/04 06:10:00 UTC
[jira] [Updated] (ATLAS-3504) Regression: DSL query with "like"
clause returns unexpected entities for custom entity type.
[ https://issues.apache.org/jira/browse/ATLAS-3504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikhil Bonte updated ATLAS-3504:
--------------------------------
Description:
# Created a custom type type1 with string attributes name and type_str
# Created 2 entities of type1:
## name : entity1 , type_str : rand_str
## name : entity2 , type_str : str_rand
# Fired DSL query : type1 where type_str like "rand*"
Expected that , entity1 only will be returned , but entity2 is also returned.
For all the following queries , both entities are returned:
1.type1 where type_str like "rand*"
2.type1 where type_str like "*rand"
3.type1 where type_str like "rand"
Basic search filter "begins with" works correctly. Issue seems to be with only DSL search. The issue is consistently reproducible.
> Regression: DSL query with "like" clause returns unexpected entities for custom entity type.
> --------------------------------------------------------------------------------------------
>
> Key: ATLAS-3504
> URL: https://issues.apache.org/jira/browse/ATLAS-3504
> Project: Atlas
> Issue Type: Bug
> Reporter: Nikhil Bonte
> Assignee: Nikhil Bonte
> Priority: Major
>
> # Created a custom type type1 with string attributes name and type_str
> # Created 2 entities of type1:
> ## name : entity1 , type_str : rand_str
> ## name : entity2 , type_str : str_rand
> # Fired DSL query : type1 where type_str like "rand*"
> Expected that , entity1 only will be returned , but entity2 is also returned.
> For all the following queries , both entities are returned:
> 1.type1 where type_str like "rand*"
> 2.type1 where type_str like "*rand"
> 3.type1 where type_str like "rand"
>
> Basic search filter "begins with" works correctly. Issue seems to be with only DSL search. The issue is consistently reproducible.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)