You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Till (JIRA)" <ji...@apache.org> on 2019/04/12 16:55:00 UTC
[jira] [Updated] (ASTERIXDB-2217) deep_equal throws
ClassCastException
[ https://issues.apache.org/jira/browse/ASTERIXDB-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Till updated ASTERIXDB-2217:
----------------------------
Affects Version/s: 0.9.4
> 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
> Affects Versions: 0.9.4
> 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)