[
https://issues.apache.org/jira/browse/IMPALA-3060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gabor Kaszab updated IMPALA-3060:
---------------------------------
Labels: catalog-server complextype impala (was: catalog-server impala)
> Supports IS [NOT] NULL feature for complex types
> ------------------------------------------------
>
> Key: IMPALA-3060
> URL: https://issues.apache.org/jira/browse/IMPALA-3060
> Project: IMPALA
> Issue Type: New Feature
> Components: Frontend
> Affects Versions: Impala 2.3.0, Impala 2.5.0
> Environment: CDH 5.5.1
> Reporter: Petter von Dolwitz
> Priority: Major
> Labels: catalog-server, complextype, impala
>
> The IS NULL / IS NOT NULL operator does not seem to work on structs. This
> functionality is vital when working with "wide" tables.
> Sample query to reproduce (col2 defined as STRUCT<field:STRING>):
> {quote}
> SELECT
> col1
> FROM
> my_table
> WHERE
> col2 IS NOT NULL;
> {quote}
> Output:
> {quote}
> I0223 12:54:45.090255 19314 Frontend.java:895] create plan
> I0223 12:54:45.091451 19314 jni-util.cc:177] java.lang.IllegalStateException:
> getSlotSize() not implemented for type STRUCT<field:STRING>
> at com.cloudera.impala.catalog.Type.getSlotSize(Type.java:218)
> at
> com.cloudera.impala.analysis.TupleDescriptor.computeMemLayout(TupleDescriptor.java:211)
> at
> com.cloudera.impala.planner.PlanNode.computeMemLayout(PlanNode.java:479)
> at
> com.cloudera.impala.planner.HdfsScanNode.init(HdfsScanNode.java:163)
> at
> com.cloudera.impala.planner.SingleNodePlanner.createScanNode(SingleNodePlanner.java:1222)
> at
> com.cloudera.impala.planner.SingleNodePlanner.createTableRefNode(SingleNodePlanner.java:1444)
> at
> com.cloudera.impala.planner.SingleNodePlanner.createTableRefsPlan(SingleNodePlanner.java:791)
> at
> com.cloudera.impala.planner.SingleNodePlanner.createSelectPlan(SingleNodePlanner.java:630)
> at
> com.cloudera.impala.planner.SingleNodePlanner.createQueryPlan(SingleNodePlanner.java:229)
> at
> com.cloudera.impala.planner.SingleNodePlanner.createSingleNodePlan(SingleNodePlanner.java:135)
> at com.cloudera.impala.planner.Planner.createPlan(Planner.java:58)
> at
> com.cloudera.impala.service.Frontend.createExecRequest(Frontend.java:897)
> at
> com.cloudera.impala.service.JniFrontend.createExecRequest(JniFrontend.java:147)
> {quote}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]