[ https://issues.apache.org/jira/browse/HAWQ-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15242011#comment-15242011 ]
ASF GitHub Bot commented on HAWQ-615: ------------------------------------- Github user shivzone commented on the pull request: https://github.com/apache/incubator-hawq/pull/551#issuecomment-210174733 @hornn the reason we went with returning an empty response was we wanted to be consistent with the way we treat the metadata api based on the given pattern. If the pattern has wildcards in it, we will never throw an exception in any case based on table incompatibilities. If the pattern corresponds to a specific table, we will throw the appropriate exception. > PXF getMetadata endpoint fails if set of items described by passed pattern > have unsupported by Hawq Hive objects > ---------------------------------------------------------------------------------------------------------------- > > Key: HAWQ-615 > URL: https://issues.apache.org/jira/browse/HAWQ-615 > Project: Apache HAWQ > Issue Type: Sub-task > Components: Hcatalog, PXF > Reporter: Oleksandr Diachenko > Assignee: Shivram Mani > Fix For: 2.0.0 > > > STR: > 1) Hive instance having at least one view object > 2) Read metadata from PXF using wildcard as a pattern: > http://localhost:51200/pxf/v14/Metadata/getMetadata?profile=hive&pattern=* > AR: > {code} > java.lang.UnsupportedOperationException: Hive views are not supported by HAWQ > > org.apache.hawq.pxf.plugins.hive.utilities.HiveUtilities.getHiveTable(HiveUtilities.java:79) > > org.apache.hawq.pxf.plugins.hive.HiveMetadataFetcher.getMetadata(HiveMetadataFetcher.java:67) > > org.apache.hawq.pxf.service.rest.MetadataResource.read(MetadataResource.java:107) > sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source) > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > java.lang.reflect.Method.invoke(Method.java:606) > > com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) > > com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) > > com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) > > com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288) > > com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) > > com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) > > com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) > > com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) > > com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469) > > com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400) > > com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349) > > com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339) > > com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) > > com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) > > com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699) > javax.servlet.http.HttpServlet.service(HttpServlet.java:731) > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) > {code} > ER: > Response should contain set of items which are supported. -- This message was sent by Atlassian JIRA (v6.3.4#6332)