[ https://issues.apache.org/jira/browse/HAWQ-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15225207#comment-15225207 ]
ASF GitHub Bot commented on HAWQ-615: ------------------------------------- GitHub user shivzone opened a pull request: https://github.com/apache/incubator-hawq/pull/551 HAWQ-615. Handle incomptible tables with getMetadata PXF API Incompatible tables will be ignored when getMetadata is invoked with a pattern that matches > 1 table You can merge this pull request into a Git repository by running: $ git pull https://github.com/apache/incubator-hawq HAWQ-615 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-hawq/pull/551.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #551 ---- commit 676396fa0c40bb600aadda6f1dc7e8763a0bdde8 Author: Shivram Mani <shivram.m...@gmail.com> Date: 2016-04-04T22:41:08Z HAWQ-615. Handle incomptible tables with getMetadata PXF API ---- > 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: Oleksandr Diachenko > 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)