[
https://issues.apache.org/jira/browse/ATLAS-3504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16969882#comment-16969882
]
ASF subversion and git services commented on ATLAS-3504:
--------------------------------------------------------
Commit ecd144d3703e127f48f1d5a1059a5643b6176d02 in atlas's branch
refs/heads/branch-2.0 from nikhilbonte
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=ecd144d ]
ATLAS-3504:- DSL query with like clause returns unexpected results #1.
Signed-off-by: nixonrodrigues <[email protected]>
(cherry picked from commit 24fb2b066bcff11a8b667b0f90d43cb482fb0e81)
> 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-p2.patch,
> 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)