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 2019/02/05 21:30:00 UTC

[jira] [Assigned] (ASTERIXDB-2217) deep_equal throws ClassCastException

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

Dmitry Lychagin reassigned ASTERIXDB-2217:
------------------------------------------

    Assignee: Ali Alsuliman  (was: Dmitry Lychagin)

> deep_equal throws ClassCastException
> ------------------------------------
>
>                 Key: ASTERIXDB-2217
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2217
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: FUN - Functions
>            Reporter: Wail Alkowaileet
>            Assignee: Ali Alsuliman
>            Priority: Major
>              Labels: triaged
>
> deep_equal doesn't allocate the right pointables for open types.
> DDL:
> {noformat}
> DROP DATAVERSE DeepEqualDataverse IF EXISTS;
> CREATE DATAVERSE DeepEqualDataverse;
> USE DeepEqualDataverse;
> CREATE TYPE EqType as {
>     a: int
> };
> CREATE DATASET Eq(EqType)
> PRIMARY KEY a;
> {noformat}
> DML:
> {noformat}
> USE DeepEqualDataverse;
> INSERT INTO Eq(
>     {"a":1, "b": {"d":3, "c":1}}
> )
> {noformat}
> Query:
> {noformat}
> USE DeepEqualDataverse;
> SELECT *
> FROM Eq as e
> WHERE deep_equal({"c": 1, "d":3}, e.b)
> {noformat}
> Output:
> {noformat}
> Error ClassCastException: org.apache.asterix.om.pointables.AFlatValuePointable cannot be cast to org.apache.asterix.om.pointables.ARecordVisitablePointable
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)