[
https://issues.apache.org/jira/browse/ATLAS-3504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16967850#comment-16967850
]
ASF subversion and git services commented on ATLAS-3504:
--------------------------------------------------------
Commit 656287589c635c6f6e7be3408a5d8049e5e6ea07 in atlas's branch
refs/heads/branch-2.0 from nikhilbonte
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=6562875 ]
ATLAS-3504-DSL-query-with-like-clause-returns-unexpected-results-v1.patch
Signed-off-by: Ashutosh Mestry <[email protected]>
> 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
> Attachments:
> ATLAS-3504-DSL-query-with-like-clause-returns-unexpected-results-v1.patch,
> entity1, entity2, type
>
>
> *Problem*
> # 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.
>
> *Root cause:*
> Creating typeDef having attribute with typeName as 'biginteger' or
> 'bigdecimal', throws exception -
> {code:java}
> "java.lang.IllegalArgumentException: Unsupported data type [class
> java.math.BigInteger] for field: ftol", {code}
> This affects text search.
>
>
> *Solution:*
> Added check to allow if data type of attribute is BigInteger or BigDecimal.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)