You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Hemanth Yamijala (JIRA)" <ji...@apache.org> on 2016/07/01 11:23:10 UTC

[jira] [Created] (ATLAS-979) Search: search on boolean values is not working

Hemanth Yamijala created ATLAS-979:
--------------------------------------

             Summary: Search: search on boolean values is not working
                 Key: ATLAS-979
                 URL: https://issues.apache.org/jira/browse/ATLAS-979
             Project: Atlas
          Issue Type: Bug
            Reporter: Hemanth Yamijala


Create an type with a boolean attribute and an entity of the type. Search using DSL with the query "typeName where boolean_attribute = true". This is failing with an exception as below:

{code}
org.apache.atlas.discovery.DiscoveryException: Invalid expression : hbase_table where isEnabled = true
        at org.apache.atlas.discovery.graph.GraphBackedDiscoveryService.evaluate(GraphBackedDiscoveryService.java:139)
        at org.apache.atlas.discovery.graph.GraphBackedDiscoveryService.searchByDSL(GraphBackedDiscoveryService.java:124)
        at org.apache.atlas.GraphTransactionInterceptor.invoke(GraphTransactionInterceptor.java:42)
        at org.apache.atlas.web.resources.MetadataDiscoveryResource.searchUsingQueryDSL(MetadataDiscoveryResource.java:116)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
        at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
...
Caused by: org.apache.atlas.AtlasException: Cannot combine types: boolean and boolean
        at org.apache.atlas.query.TypeUtils$.combinedType(TypeUtils.scala:56)
        at org.apache.atlas.query.Expressions$ComparisonExpression.dataType$lzycompute(Expressions.scala:639)
        at org.apache.atlas.query.Expressions$ComparisonExpression.dataType(Expressions.scala:628)
        at org.apache.atlas.query.Expressions$ComparisonExpression.dataType(Expressions.scala:623)
        at org.apache.atlas.query.Expressions$FilterExpression.dataType$lzycompute(Expressions.scala:672)
        at org.apache.atlas.query.Expressions$FilterExpression.dataType(Expressions.scala:667)
        at org.apache.atlas.query.QueryProcessor$.validate(QueryProcessor.scala:49)
        at org.apache.atlas.query.QueryProcessor.validate(QueryProcessor.scala)
        at org.apache.atlas.discovery.graph.GraphBackedDiscoveryService.evaluate(GraphBackedDiscoveryService.java:144)
        at org.apache.atlas.discovery.graph.GraphBackedDiscoveryService.evaluate(GraphBackedDiscoveryService.java:134)
{code} 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)