[ 
https://issues.apache.org/jira/browse/ASTERIXDB-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15302467#comment-15302467
 ] 

ASF subversion and git services commented on ASTERIXDB-1419:
------------------------------------------------------------

Commit bd1d98ce49ae6b7b2272e2025c07d15ed6d37376 in incubator-asterixdb's branch 
refs/heads/master from [~mhubail]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-asterixdb.git;h=bd1d98c ]

ASTERIXDB-1419: Fix type checking for CollectionType

Change-Id: Ibf11d6c59ae00fe6d21fed8d75f199ee4ac9852c
Reviewed-on: https://asterix-gerrit.ics.uci.edu/886
Reviewed-by: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
Reviewed-by: Yingyi Bu <[email protected]>


> Can not drop a accidently created type
> --------------------------------------
>
>                 Key: ASTERIXDB-1419
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1419
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: Metadata
>            Reporter: Jianfeng Jia
>            Assignee: Ildar Absalyamov
>
> I create a datatype as following:
> {code}
>   create type typeSnapshot if not exists as open {
>       countyID : int32,
>       timeBin: interval,
>       tweetCount: int32,
>       retweetCount: int32,
>       users: [int64],
>       top50HashTags: [{string:int32}]
>     }
> {code}
> It was created successfully. Then I found the *top50HashTags* was wrong. 
> However I can't drop this type due to the following exception:
> {code}
> java.lang.ClassCastException: org.apache.asterix.om.types.AOrderedListType 
> cannot be cast to org.apache.asterix.om.types.ARecordType
>     at 
> org.apache.asterix.metadata.MetadataNode.confirmDatatypeIsUnusedByDatatypes(MetadataNode.java:748)
>     at 
> org.apache.asterix.metadata.MetadataNode.confirmDatatypeIsUnused(MetadataNode.java:723)
>     at 
> org.apache.asterix.metadata.MetadataNode.dropDatatype(MetadataNode.java:502)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to