Skip to main content
Skip to main content

Description of the return value of the OLAP function on the BE side

Description of the return value of the OLAP function on the BE side

Return value nameReturn valueReturn value description
OLAP_SUCCESS0Success
OLAP_ERR_OTHER_ERROR-1Other errors
OLAP_REQUEST_FAILED-2Request failed
System error codes, such as file system memory and other system call failures
OLAP_ERR_OS_ERROR-100Operating system error
OLAP_ERR_DIR_NOT_EXIST-101Directory does not exist error
OLAP_ERR_FILE_NOT_EXIST-102File does not exist error
OLAP_ERR_CREATE_FILE_ERROR-103Error creating file
OLAP_ERR_MALLOC_ERROR-104Memory allocation error
OLAP_ERR_STL_ERROR-105Standard template library error
OLAP_ERR_IO_ERROR-106IO error
OLAP_ERR_MUTEX_ERROR-107Mutex error
OLAP_ERR_PTHREAD_ERROR-108POSIX thread error
OLAP_ERR_NETWORK_ERROR-109Network abnormal error
OLAP_ERR_UB_FUNC_ERROR-110
OLAP_ERR_COMPRESS_ERROR-111Data compression error
OLAP_ERR_DECOMPRESS_ERROR-112Data decompression error
OLAP_ERR_UNKNOWN_COMPRESSION_TYPE-113Unknown data compression type
OLAP_ERR_MMAP_ERROR-114Memory mapped file error
OLAP_ERR_RWLOCK_ERROR-115Read-write lock error
OLAP_ERR_READ_UNENOUGH-116Read memory is not enough exception
OLAP_ERR_CANNOT_CREATE_DIR-117Cannot create directory exception
OLAP_ERR_UB_NETWORK_ERROR-118Network exception
OLAP_ERR_FILE_FORMAT_ERROR-119File format abnormal
OLAP_ERR_EVAL_CONJUNCTS_ERROR-120
OLAP_ERR_COPY_FILE_ERROR-121Copy file error
OLAP_ERR_FILE_ALREADY_EXIST-122File already exists error
General error codes
OLAP_ERR_NOT_INITED-200Cannot initialize exception
OLAP_ERR_FUNC_NOT_IMPLEMENTED-201Function cannot be executed exception
OLAP_ERR_CALL_SEQUENCE_ERROR-202Call SEQUENCE exception
OLAP_ERR_INPUT_PARAMETER_ERROR-203Input parameter error
OLAP_ERR_BUFFER_OVERFLOW-204Memory buffer overflow error
OLAP_ERR_CONFIG_ERROR-205Configuration error
OLAP_ERR_INIT_FAILED-206Initialization failed
OLAP_ERR_INVALID_SCHEMA-207Invalid Schema
OLAP_ERR_CHECKSUM_ERROR-208Check value error
OLAP_ERR_SIGNATURE_ERROR-209Signature error
OLAP_ERR_CATCH_EXCEPTION-210Exception caught
OLAP_ERR_PARSE_PROTOBUF_ERROR-211Error parsing Protobuf
OLAP_ERR_INVALID_ROOT_PATH-222Invalid root directory
OLAP_ERR_NO_AVAILABLE_ROOT_PATH-223No valid root directory
OLAP_ERR_CHECK_LINES_ERROR-224Check the number of lines error
OLAP_ERR_INVALID_CLUSTER_INFO-225Invalid Cluster Information
OLAP_ERR_TRANSACTION_NOT_EXIST-226Transaction does not exist
OLAP_ERR_DISK_FAILURE-227Disk error
OLAP_ERR_TRANSACTION_ALREADY_COMMITTED-228Transaction submitted
OLAP_ERR_TRANSACTION_ALREADY_VISIBLE-229Transaction visible
OLAP_ERR_VERSION_ALREADY_MERGED-230Version has been merged
OLAP_ERR_LZO_DISABLED-231LZO is disabled
OLAP_ERR_DISK_REACH_CAPACITY_LIMIT-232Disk reached capacity limit
OLAP_ERR_TOO_MANY_TRANSACTIONS-233Too many transaction backlogs are not completed
OLAP_ERR_INVALID_SNAPSHOT_VERSION-234Invalid snapshot version
OLAP_ERR_TOO_MANY_VERSION-235The tablet data version exceeds the maximum limit (default 500)
OLAP_ERR_NOT_INITIALIZED-236Cannot initialize
OLAP_ERR_ALREADY_CANCELLED-237Has been cancelled
OLAP_ERR_TOO_MANY_SEGMENTS-238usually occurs when the amount of imported data in the same batch is too large, resulting in too many segment files for a tablet
Command execution exception code
OLAP_ERR_CE_CMD_PARAMS_ERROR-300Command parameter error
OLAP_ERR_CE_BUFFER_TOO_SMALL-301Too many small files in the buffer
OLAP_ERR_CE_CMD_NOT_VALID-302Invalid command
OLAP_ERR_CE_LOAD_TABLE_ERROR-303Error loading data table
OLAP_ERR_CE_NOT_FINISHED-304The command was not executed successfully
OLAP_ERR_CE_TABLET_ID_EXIST-305Tablet Id does not exist error
OLAP_ERR_CE_TRY_CE_LOCK_ERROR-306Attempt to obtain execution command lock error
Tablet error exception code
OLAP_ERR_TABLE_VERSION_DUPLICATE_ERROR-400Tablet copy version error
OLAP_ERR_TABLE_VERSION_INDEX_MISMATCH_ERROR-401tablet version index mismatch exception
OLAP_ERR_TABLE_INDEX_VALIDATE_ERROR-402The initial version of the tablet is not checked here, because if the BE is restarted during a schema-change of a tablet, we may encounter an empty tablet exception
OLAP_ERR_TABLE_INDEX_FIND_ERROR-403Unable to get the position of the first block or failure to find the last block of the block will cause this exception
OLAP_ERR_TABLE_CREATE_FROM_HEADER_ERROR-404This exception is triggered when the tablet cannot be loaded
OLAP_ERR_TABLE_CREATE_META_ERROR-405Unable to create tablet (change schema), base tablet does not exist, this exception will be triggered
OLAP_ERR_TABLE_ALREADY_DELETED_ERROR-406The tablet has been deleted
Storage Engine Error Code
OLAP_ERR_ENGINE_INSERT_EXISTS_TABLE-500Add the same tablet twice, add the tablet to the same data directory twice, the new tablet is empty, and the old tablet exists. Will trigger this exception
OLAP_ERR_ENGINE_DROP_NOEXISTS_TABLE-501Delete non-existent table
OLAP_ERR_ENGINE_LOAD_INDEX_TABLE_ERROR-502Failed to load tablet_meta, segment group meta with invalid cumulative rowset, will cause this exception
OLAP_ERR_TABLE_INSERT_DUPLICATION_ERROR-503Duplicate table insert
OLAP_ERR_DELETE_VERSION_ERROR-504Delete version error
OLAP_ERR_GC_SCAN_PATH_ERROR-505GC scan path error
OLAP_ERR_ENGINE_INSERT_OLD_TABLET-506When BE is restarting and older tablets have been added to the garbage collection queue but have not yet been deleted. In this case, since data_dirs are loaded in parallel, tablets loaded later may be loaded later than before The tablet is old, this should not be confirmed as a failure, so return to change the code at this time
Fetch Handler error code
OLAP_ERR_FETCH_OTHER_ERROR-600FetchHandler other errors
OLAP_ERR_FETCH_TABLE_NOT_EXIST-601FetchHandler table does not exist
OLAP_ERR_FETCH_VERSION_ERROR-602FetchHandler version error
OLAP_ERR_FETCH_SCHEMA_ERROR-603FetchHandler Schema error
OLAP_ERR_FETCH_COMPRESSION_ERROR-604FetchHandler compression error
OLAP_ERR_FETCH_CONTEXT_NOT_EXIST-605FetchHandler context does not exist
OLAP_ERR_FETCH_GET_READER_PARAMS_ERR-606FetchHandler GET read parameter error
OLAP_ERR_FETCH_SAVE_SESSION_ERR-607FetchHandler save session error
OLAP_ERR_FETCH_MEMORY_EXCEEDED-608FetchHandler memory exceeded exception
Read exception error code
OLAP_ERR_READER_IS_UNINITIALIZED-700Read cannot be initialized
OLAP_ERR_READER_GET_ITERATOR_ERROR-701Get read iterator error
OLAP_ERR_CAPTURE_ROWSET_READER_ERROR-702Current Rowset read error
OLAP_ERR_READER_READING_ERROR-703Failed to initialize column data, the column data of cumulative rowset is invalid, this exception code will be returned
OLAP_ERR_READER_INITIALIZE_ERROR-704Read initialization failed
BaseCompaction exception code information
OLAP_ERR_BE_VERSION_NOT_MATCH-800BE Compaction version mismatch error
OLAP_ERR_BE_REPLACE_VERSIONS_ERROR-801BE Compaction replacement version error
OLAP_ERR_BE_MERGE_ERROR-802BE Compaction merge error
OLAP_ERR_CAPTURE_ROWSET_ERROR-804Cannot find the version corresponding to Rowset
OLAP_ERR_BE_SAVE_HEADER_ERROR-805BE Compaction save header error
OLAP_ERR_BE_INIT_OLAP_DATA-806BE Compaction initialized OLAP data error
OLAP_ERR_BE_TRY_OBTAIN_VERSION_LOCKS-807BE Compaction trying to obtain version lock error
OLAP_ERR_BE_NO_SUITABLE_VERSION-808BE Compaction does not have a suitable version
OLAP_ERR_BE_TRY_BE_LOCK_ERROR-809The other base compaction is running, and the attempt to acquire the lock failed
OLAP_ERR_BE_INVALID_NEED_MERGED_VERSIONS-810Invalid Merge version
OLAP_ERR_BE_ERROR_DELETE_ACTION-811BE performing delete operation error
OLAP_ERR_BE_SEGMENTS_OVERLAPPING-812Rowset exception with overlapping cumulative points
OLAP_ERR_BE_CLONE_OCCURRED-813Cloning tasks may occur after the compression task is submitted to the thread pool, and the set of rows selected for compression may change. In this case, the current compression task should not be performed. Return this code
PUSH exception code
OLAP_ERR_PUSH_INIT_ERROR-900Unable to initialize reader, unable to create table descriptor, unable to initialize memory tracker, unsupported file format type, unable to open scanner, unable to obtain tuple descriptor, failed to allocate memory for tuple, Will return this code
OLAP_ERR_PUSH_DELTA_FILE_EOF-901
OLAP_ERR_PUSH_VERSION_INCORRECT-902PUSH version is incorrect
OLAP_ERR_PUSH_SCHEMA_MISMATCH-903PUSH Schema does not match
OLAP_ERR_PUSH_CHECKSUM_ERROR-904PUSH check value error
OLAP_ERR_PUSH_ACQUIRE_DATASOURCE_ERROR-905PUSH get data source error
OLAP_ERR_PUSH_CREAT_CUMULATIVE_ERROR-906PUSH Create CUMULATIVE error code
OLAP_ERR_PUSH_BUILD_DELTA_ERROR-907The pushed incremental file has an incorrect check code
OLAP_ERR_PUSH_VERSION_ALREADY_EXIST-908PUSH version already exists
OLAP_ERR_PUSH_TABLE_NOT_EXIST-909PUSH table does not exist
OLAP_ERR_PUSH_INPUT_DATA_ERROR-910PUSH data is invalid, it may be length, data type and other issues
OLAP_ERR_PUSH_TRANSACTION_ALREADY_EXIST-911When submitting the transaction to the engine, it is found that Rowset exists, but the Rowset ID is different
OLAP_ERR_PUSH_BATCH_PROCESS_REMOVED-912Deleted the push batch process
OLAP_ERR_PUSH_COMMIT_ROWSET-913PUSH Commit Rowset
OLAP_ERR_PUSH_ROWSET_NOT_FOUND-914PUSH Rowset not found
SegmentGroup exception code
OLAP_ERR_INDEX_LOAD_ERROR-1000Load index error
OLAP_ERR_INDEX_EOF-1001
OLAP_ERR_INDEX_CHECKSUM_ERROR-1002Checksum verification error, segment error loading index.
OLAP_ERR_INDEX_DELTA_PRUNING-1003Index incremental pruning
OLAPData exception code information
OLAP_ERR_DATA_ROW_BLOCK_ERROR-1100Data row Block block error
OLAP_ERR_DATA_FILE_TYPE_ERROR-1101Data file type error
OLAP_ERR_DATA_EOF-1102
OLAP data write error code
OLAP_ERR_WRITER_INDEX_WRITE_ERROR-1200Index write error
OLAP_ERR_WRITER_DATA_WRITE_ERROR-1201Data writing error
OLAP_ERR_WRITER_ROW_BLOCK_ERROR-1202Row Block block write error
OLAP_ERR_WRITER_SEGMENT_NOT_FINALIZED-1203Before adding a new segment, the previous segment was not completed
RowBlock error code
OLAP_ERR_ROWBLOCK_DECOMPRESS_ERROR-1300Rowblock decompression error
OLAP_ERR_ROWBLOCK_FIND_ROW_EXCEPTION-1301Failed to obtain Block Entry
Tablet metadata error
OLAP_ERR_HEADER_ADD_VERSION-1400Tablet metadata increase version
OLAP_ERR_HEADER_DELETE_VERSION-1401Tablet metadata deletion version
OLAP_ERR_HEADER_ADD_PENDING_DELTA-1402Tablet metadata add pending increment
OLAP_ERR_HEADER_ADD_INCREMENTAL_VERSION-1403Tablet metadata addition self-increment version
OLAP_ERR_HEADER_INVALID_FLAG-1404Invalid tablet metadata flag
OLAP_ERR_HEADER_PUT-1405tablet metadata PUT operation
OLAP_ERR_HEADER_DELETE-1406tablet metadata DELETE operation
OLAP_ERR_HEADER_GET-1407tablet metadata GET operation
OLAP_ERR_HEADER_LOAD_INVALID_KEY-1408Tablet metadata loading invalid Key
OLAP_ERR_HEADER_FLAG_PUT-1409
OLAP_ERR_HEADER_LOAD_JSON_HEADER-1410tablet metadata loading JSON Header
OLAP_ERR_HEADER_INIT_FAILED-1411Tablet metadata header initialization failed
OLAP_ERR_HEADER_PB_PARSE_FAILED-1412Tablet metadata Protobuf parsing failed
OLAP_ERR_HEADER_HAS_PENDING_DATA-1413Tablet metadata pending data
TabletSchema exception code information
OLAP_ERR_SCHEMA_SCHEMA_INVALID-1500Invalid Tablet Schema
OLAP_ERR_SCHEMA_SCHEMA_FIELD_INVALID-1501Tablet Schema field is invalid
SchemaHandler exception code information
OLAP_ERR_ALTER_MULTI_TABLE_ERR-1600ALTER multi-table error
OLAP_ERR_ALTER_DELTA_DOES_NOT_EXISTS-1601Failed to get all data sources, Tablet has no version
OLAP_ERR_ALTER_STATUS_ERR-1602Failed to check the row number, internal sorting failed, row block sorting failed, these will return this code
OLAP_ERR_PREVIOUS_SCHEMA_CHANGE_NOT_FINISHED-1603The previous schema change is not completed
OLAP_ERR_SCHEMA_CHANGE_INFO_INVALID-1604Schema change information is invalid
OLAP_ERR_QUERY_SPLIT_KEY_ERR-1605Query Split key error
OLAP_ERR_DATA_QUALITY_ERROR-1606Errors caused by data quality issues or reach memory limit during schema changes/materialized views
Column File error code
OLAP_ERR_COLUMN_DATA_LOAD_BLOCK-1700Error loading column data block
OLAP_ERR_COLUMN_DATA_RECORD_INDEX-1701Load data record index error
OLAP_ERR_COLUMN_DATA_MAKE_FILE_HEADER-1702
OLAP_ERR_COLUMN_DATA_READ_VAR_INT-1703Cannot read column data from Stream
OLAP_ERR_COLUMN_DATA_PATCH_LIST_NUM-1704
OLAP_ERR_COLUMN_STREAM_EOF-1705If the data stream ends, return this code
OLAP_ERR_COLUMN_READ_STREAM-1706The block size is greater than the buffer size, the remaining compressed size is less than the Stream header size, and the read stream fails. This exception will be thrown in these cases
OLAP_ERR_COLUMN_STREAM_NOT_EXIST-1707Stream is empty, does not exist, the data stream is not found, etc. The exception code is returned
OLAP_ERR_COLUMN_VALUE_NULL-1708Column value is empty exception
OLAP_ERR_COLUMN_SEEK_ERROR-1709If you add a column through a schema change, the column index may exist due to the schema change, and this exception code is returned
DeleteHandler error code
OLAP_ERR_DELETE_INVALID_CONDITION-1900Invalid delete condition
OLAP_ERR_DELETE_UPDATE_HEADER_FAILED-1901Delete update Header error
OLAP_ERR_DELETE_SAVE_HEADER_FAILED-1902Delete save header error
OLAP_ERR_DELETE_INVALID_PARAMETERS-1903Invalid delete parameter
OLAP_ERR_DELETE_INVALID_VERSION-1904Invalid delete version
Cumulative Handler error code
OLAP_ERR_CUMULATIVE_NO_SUITABLE_VERSIONS-2000Cumulative does not have a suitable version
OLAP_ERR_CUMULATIVE_REPEAT_INIT-2001Cumulative Repeat initialization error
OLAP_ERR_CUMULATIVE_INVALID_PARAMETERS-2002Invalid Cumulative parameter
OLAP_ERR_CUMULATIVE_FAILED_ACQUIRE_DATA_SOURCE-2003Cumulative failed to obtain data source
OLAP_ERR_CUMULATIVE_INVALID_NEED_MERGED_VERSIONS-2004Cumulative does not have a valid version that needs to be merged
OLAP_ERR_CUMULATIVE_ERROR_DELETE_ACTION-2005Cumulative delete operation error
OLAP_ERR_CUMULATIVE_MISS_VERSION-2006rowsets missing version
OLAP_ERR_CUMULATIVE_CLONE_OCCURRED-2007Cloning tasks may occur after the compression task is submitted to the thread pool, and the set of rows selected for compression may change. In this case, the current compression task should not be performed. Otherwise it will trigger a change exception
OLAPMeta exception code
OLAP_ERR_META_INVALID_ARGUMENT-3000Invalid metadata parameter
OLAP_ERR_META_OPEN_DB-3001Open DB metadata error
OLAP_ERR_META_KEY_NOT_FOUND-3002Metadata key not found
OLAP_ERR_META_GET-3003GET metadata error
OLAP_ERR_META_PUT-3004PUT metadata error
OLAP_ERR_META_ITERATOR-3005Metadata iterator error
OLAP_ERR_META_DELETE-3006Delete metadata error
OLAP_ERR_META_ALREADY_EXIST-3007Metadata already has an error
Rowset error code
OLAP_ERR_ROWSET_WRITER_INIT-3100Rowset write initialization error
OLAP_ERR_ROWSET_SAVE_FAILED-3101Rowset save failed
OLAP_ERR_ROWSET_GENERATE_ID_FAILED-3102Rowset failed to generate ID
OLAP_ERR_ROWSET_DELETE_FILE_FAILED-3103Rowset failed to delete file
OLAP_ERR_ROWSET_BUILDER_INIT-3104Rowset initialization failed to build
OLAP_ERR_ROWSET_TYPE_NOT_FOUND-3105Rowset type not found
OLAP_ERR_ROWSET_ALREADY_EXIST-3106Rowset already exists
OLAP_ERR_ROWSET_CREATE_READER-3107Rowset failed to create read object
OLAP_ERR_ROWSET_INVALID-3108Rowset is invalid
OLAP_ERR_ROWSET_READER_INIT-3110Rowset read object initialization failed
OLAP_ERR_ROWSET_INVALID_STATE_TRANSITION-3112Rowset invalid transaction state
OLAP_ERR_ROWSET_RENAME_FILE_FAILED-3116Rowset failed to rename file
OLAP_ERR_SEGCOMPACTION_INIT_READER-3117Segment Compaction failed to init reader
OLAP_ERR_SEGCOMPACTION_INIT_WRITER-3118Segment Compaction failed to init writer
OLAP_ERR_SEGCOMPACTION_FAILED-3119Segment Compaction failed