atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasad S Madugundu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ATLAS-1109) DSL support for Map and Array property search
Date Mon, 29 Aug 2016 09:49:21 GMT

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

Prasad  S Madugundu commented on ATLAS-1109:
--------------------------------------------

I have also observed that selecting Map attribute also fails. For example, I have the following
attribute defined:
                    {
                        "name": "classificationStats",
                        "dataTypeName": "map",
                        "multiplicity": "optional",
                        "isComposite": false,
                        "isUnique": false,
                        "isIndexable": false,
                        "reverseAttributeName": null
                    }
The following DSL fails:
DataLakeFile as file where __guid='706f75e5-80b9-436d-89ef-6aa72ca216d2' select classificationStats

Stack trace:
com.ibm.analytics.oms.exception.AtlasException: Invalid expression : DataLakeFile as file
where __guid='706f75e5-80b9-436d-89ef-6aa72ca216d2' select classificationStats
	at com.ibm.analytics.oms.impl.atlas.AtlasHttpResponse$AtlasErrorResponse.getException(AtlasHttpResponse.java:110)
	at com.ibm.analytics.oms.impl.atlas.handler.AtlasRequestHandler.getCause(AtlasRequestHandler.java:202)
	at com.ibm.analytics.oms.impl.atlas.handler.AtlasRequestHandler.handleBadRequest(AtlasRequestHandler.java:217)
	at com.ibm.analytics.oms.impl.atlas.handler.AtlasRequestHandler.handleOtherFailures(AtlasRequestHandler.java:248)
	at com.ibm.analytics.oms.impl.atlas.handler.SearchRequestHandler.translateResponse(SearchRequestHandler.java:169)
	at com.ibm.analytics.oms.impl.atlas.handler.SearchRequestHandler.translateResponse(SearchRequestHandler.java:37)
	at com.ibm.analytics.oms.impl.atlas.handler.AtlasRequestHandler.processRequest(AtlasRequestHandler.java:83)
	at com.ibm.analytics.oms.impl.PojoMetadataClient.processRequest(PojoMetadataClient.java:462)
	at com.ibm.analytics.oms.impl.PojoMetadataClient.searchDsl(PojoMetadataClient.java:539)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.ibm.analytics.oms.client.impl.MetadataClientInvocationHandler.invoke(MetadataClientInvocationHandler.java:41)
	at com.sun.proxy.$Proxy5.searchDsl(Unknown Source)
	at com.ibm.analytics.omas.impl.OpenMetadataAccessServiceImpl.search(OpenMetadataAccessServiceImpl.java:185)
	at com.ibm.analytics.omas.datalake.api.impl.DataLakeServiceImpl.addClassifications(DataLakeServiceImpl.java:567)
	at com.ibm.analytics.oms.DataLakeAssetClassificationTest.testAddGetDeleteClassifications(DataLakeAssetClassificationTest.java:78)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:69)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:48)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:292)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.apache.atlas.discovery.DiscoveryException: Invalid expression : DataLakeFile
as file where __guid='706f75e5-80b9-436d-89ef-6aa72ca216d2' select classificationStats
	at org.apache.atlas.discovery.graph.GraphBackedDiscoveryService.evaluate(GraphBackedDiscoveryService.java:142)
	at org.apache.atlas.discovery.graph.GraphBackedDiscoveryService.searchByDSL(GraphBackedDiscoveryService.java:132)
	at org.apache.atlas.GraphTransactionInterceptor.invoke(GraphTransactionInterceptor.java:39)
	at org.apache.atlas.web.resources.MetadataDiscoveryResource.searchUsingQueryDSL(MetadataDiscoveryResource.java:113)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
	at java.lang.reflect.Method.invoke(Method.java:508)
	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)
	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287)
	at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:277)
	at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182)
	at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)
	at org.apache.atlas.web.filters.RequestContextFilter.doFilter(RequestContextFilter.java:45)
	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
	at org.apache.atlas.web.filters.AuditFilter.doFilter(AuditFilter.java:71)
	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
	at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)
	at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)
	at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)
	at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)
	at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
	at org.eclipse.jetty.server.Server.handle(Server.java:499)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
	at java.lang.Thread.run(Thread.java:785)
Caused by: org.apache.atlas.query.GremlinTranslationException: Unsupported Gremlin translation:
expression not yet supported, expression: _src1.classificationStats

> DSL support for Map and Array property search
> ---------------------------------------------
>
>                 Key: ATLAS-1109
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1109
>             Project: Atlas
>          Issue Type: New Feature
>            Reporter: Neeru Gupta
>
> Add DSL support for searching array and map attributes.  Perhaps there could be a contains
predicate for searching array attributes for specific value(s), or searching a map attribute
for specific key(s).



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

Mime
View raw message