Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-1419

Can not drop a accidently created type

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: MTD - Metadata
    • Labels:
      None

      Description

      I create a datatype as following:

        create type typeSnapshot if not exists as open {
            countyID : int32,
            timeBin: interval,
            tweetCount: int32,
            retweetCount: int32,
            users: [int64],
            top50HashTags: [{string:int32}]
          }
      

      It was created successfully. Then I found the top50HashTags was wrong. However I can't drop this type due to the following exception:

      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)
      

        Attachments

          Activity

            People

            • Assignee:
              mhubail Murtadha Makki Al Hubail
              Reporter:
              javierjia Jianfeng Jia
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: