Search in sources :

Example 1 with UnsupportedItemTypeException

use of org.apache.asterix.om.exceptions.UnsupportedItemTypeException in project asterixdb by apache.

the class FieldAccessNestedResultType method checkOrderedList.

private void checkOrderedList(String funcName, IAType type) throws AlgebricksException {
    AOrderedListType listType = (AOrderedListType) type;
    ATypeTag itemTypeTag = listType.getItemType().getTypeTag();
    if (itemTypeTag != ATypeTag.STRING && itemTypeTag != ATypeTag.ANY) {
        throw new UnsupportedItemTypeException(funcName, itemTypeTag);
    }
}
Also used : UnsupportedItemTypeException(org.apache.asterix.om.exceptions.UnsupportedItemTypeException) ATypeTag(org.apache.asterix.om.types.ATypeTag) AOrderedListType(org.apache.asterix.om.types.AOrderedListType)

Aggregations

UnsupportedItemTypeException (org.apache.asterix.om.exceptions.UnsupportedItemTypeException)1 AOrderedListType (org.apache.asterix.om.types.AOrderedListType)1 ATypeTag (org.apache.asterix.om.types.ATypeTag)1