asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jianfeng Jia (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ASTERIXDB-1401) Can not drop a type
Date Mon, 18 Apr 2016 21:02:25 GMT
Jianfeng Jia created ASTERIXDB-1401:
---------------------------------------

             Summary: Can not drop a type
                 Key: ASTERIXDB-1401
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1401
             Project: Apache AsterixDB
          Issue Type: Bug
          Components: Metadata
            Reporter: Jianfeng Jia


Here is the test case: 
{code}
create type typeX if not exists as open {
   id : int64
}

drop type typeX if exists
{code}

It will throw an exception as following:
{code}
SEVERE: org.apache.asterix.om.types.AUnorderedListType cannot be cast to org.apache.asterix.om.types.ARecordType
java.lang.ClassCastException: org.apache.asterix.om.types.AUnorderedListType 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)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
    at sun.rmi.transport.Transport$1.run(Transport.java:200)
    at sun.rmi.transport.Transport$1.run(Transport.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$93(TCPTransport.java:683)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)
    at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:227)
    at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:179)
    at com.sun.proxy.$Proxy11.dropDatatype(Unknown Source)
    at org.apache.asterix.metadata.MetadataManager.dropDatatype(MetadataManager.java:402)
    at org.apache.asterix.aql.translator.QueryTranslator.handleTypeDropStatement(QueryTranslator.java:1745)
    at org.apache.asterix.aql.translator.QueryTranslator.compileAndExecute(QueryTranslator.java:319)
    at org.apache.asterix.aql.translator.QueryTranslator.compileAndExecute(QueryTranslator.java:254)
    at org.apache.asterix.api.http.servlet.APIServlet.doPost(APIServlet.java:148)
{code}



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

Mime
View raw message