You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Dmitry Lychagin (JIRA)" <ji...@apache.org> on 2017/08/23 17:27:00 UTC

[jira] [Assigned] (ASTERIXDB-1835) UnionType cast to RecordType issue when query nested, optional record type.

     [ https://issues.apache.org/jira/browse/ASTERIXDB-1835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Lychagin reassigned ASTERIXDB-1835:
------------------------------------------

    Assignee: Dmitry Lychagin  (was: Yingyi Bu)

> UnionType cast to RecordType issue when query nested, optional record type.
> ---------------------------------------------------------------------------
>
>                 Key: ASTERIXDB-1835
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1835
>             Project: Apache AsterixDB
>          Issue Type: Bug
>            Reporter: Xikui Wang
>            Assignee: Dmitry Lychagin
>            Priority: Minor
>
> {noformat}
> DROP DATAVERSE Test IF EXISTS;
> CREATE DATAVERSE Test;
> USE Test;
> CREATE TYPE TypeA AS {
> 	aid: int
> }
> CREATE TYPE TypeB AS {
> 	bid: int,
> 	a_attr: TypeA?
> }
> CREATE DATASET DataB(TypeB) PRIMARY KEY bid;
> SELECT * FROM DataB WHERE DataB.a_attr.aid = '0';
> {noformat}
> {noformat}Error
> Message
> org.apache.asterix.om.types.AUnionType cannot be cast to org.apache.asterix.om.types.ARecordType [ClassCastException]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)