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);
}
}
Aggregations