asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xikui Wang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ASTERIXDB-1835) UnionType cast to RecordType issue when query nested record type.
Date Fri, 10 Mar 2017 18:26:04 GMT

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

Xikui Wang updated ASTERIXDB-1835:
----------------------------------
    Description: 
{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}

  was:
{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}

Error
Message
org.apache.asterix.om.types.AUnionType cannot be cast to org.apache.asterix.om.types.ARecordType
[ClassCastException]


> UnionType cast to RecordType issue when query nested record type.
> -----------------------------------------------------------------
>
>                 Key: ASTERIXDB-1835
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1835
>             Project: Apache AsterixDB
>          Issue Type: Bug
>            Reporter: Xikui Wang
>            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.3.15#6346)

Mime
View raw message