[ 
https://issues.apache.org/jira/browse/ATLAS-3504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16967825#comment-16967825
 ] 

ASF subversion and git services commented on ATLAS-3504:
--------------------------------------------------------

Commit f6e252f8bba84da7f46f69c5fe264e6d48eec017 in atlas's branch 
refs/heads/master from nikhilbonte
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=f6e252f ]

ATLAS-3504-DSL-query-with-like-clause-returns-unexpected-results-v1.patch

Signed-off-by: Ashutosh Mestry <ames...@hortonworks.com>


> 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)

Reply via email to