[ https://issues.apache.org/jira/browse/HAWQ-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15222469#comment-15222469 ]
Goden Yao edited comment on HAWQ-615 at 4/1/16 10:45 PM: --------------------------------------------------------- A preferable behavior is: (IMHO) 1) if query for a single table that contains complex types we don't support yet, gracefully error out with messages like "the table contains complex types which is not supported" 2) if query with a pattern, we should return the tables that only contain types we support and also a list of table names we don't support. Alternatively, we can just put error tables in the log and only return good tables. was (Author: godenyao): A preferable behavior is: (IMHO) 1) if query for a single table that contains complex types we don't support yet, gracefully error out with messages like "the table contains complex types which is not supported" 2) if query with a pattern, we should return the tables that only contain types we support and also a list of table names we don't support. > 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)