You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-06-15 03:21:42 +03:00
clang format apply
This commit is contained in:
@ -28,72 +28,79 @@ using namespace std;
|
||||
|
||||
namespace logging
|
||||
{
|
||||
|
||||
ErrorCodes::ErrorCodes(): fErrorCodes(), fPreamble("An unexpected condition within the query caused an internal processing error within Columnstore. Please check the log files for more details. Additional Information: ")
|
||||
ErrorCodes::ErrorCodes()
|
||||
: fErrorCodes()
|
||||
, fPreamble(
|
||||
"An unexpected condition within the query caused an internal processing error within Columnstore. "
|
||||
"Please check the log files for more details. Additional Information: ")
|
||||
{
|
||||
fErrorCodes[batchPrimitiveStepErr] = "error in BatchPrimitiveStep.";
|
||||
fErrorCodes[tupleBPSErr] = "error in TupleBPS.";
|
||||
fErrorCodes[batchPrimitiveStepLargeDataListFileErr] = "error in BatchPrimitiveStep LargeDataList File handling.";
|
||||
fErrorCodes[bucketReuseStepErr] = "error in BucketReuseStep.";
|
||||
fErrorCodes[bucketReuseStepLargeDataListFileErr] = "error in bucketReuseStep LargeDataList File handling.";
|
||||
fErrorCodes[aggregateFilterStepErr] = "error in AggregateFilterStep.";
|
||||
fErrorCodes[filterStepErr] = "error in FilterStep.";
|
||||
fErrorCodes[functionStepErr] = "error in FunctionStep.";
|
||||
fErrorCodes[hashJoinStepErr] = "error in HashJoinStep.";
|
||||
fErrorCodes[hashJoinStepLargeDataListFileErr] = "error in HashJoinStep LargeDataList File handling.";
|
||||
fErrorCodes[largeHashJoinErr] = "error in LargeHashJoin.";
|
||||
fErrorCodes[largeHashJoinLargeDataListFileErr] = "error in LargeHashJoin LargeDataList File handling.";
|
||||
fErrorCodes[stringHashJoinStepErr] = "error in StringHashJoinStep.";
|
||||
fErrorCodes[stringHashJoinStepLargeDataListFileErr] = "error in StringHashJoinStep LargeDataList File handling.";
|
||||
fErrorCodes[tupleHashJoinTooBigErr] = "error in TupleHashJoin: join is too big.";
|
||||
fErrorCodes[threadResourceErr] = "error in ExeMgr: too many threads on the system.";
|
||||
fErrorCodes[pDictionaryScanErr] = "error in pDictionaryScan.";
|
||||
fErrorCodes[pDictionaryScanLargeDataListFileErr] = "error in pDictionaryScan LargeDataList File handling.";
|
||||
fErrorCodes[pIdxListErr] = "error in pIdxList.";
|
||||
fErrorCodes[pIdxWalkErr] = "error in pIdxWalk.";
|
||||
fErrorCodes[pnlJoinErr] = "error in PNLJoinErr.";
|
||||
fErrorCodes[reduceStepErr] = "error in ReduceStep.";
|
||||
fErrorCodes[reduceStepLargeDataListFileErr] = "error in ReduceStep LargeDataList File handling.";
|
||||
fErrorCodes[unionStepErr] = "error in UnionStep.";
|
||||
fErrorCodes[unionStepLargeDataListFileErr] = "error in UnionStep LargeDataList File handling.";
|
||||
fErrorCodes[unionStepTooBigErr] = "the union required too much memory.";
|
||||
fErrorCodes[tupleAggregateStepErr] = "error in TupleAggregateStep.";
|
||||
fErrorCodes[tupleConstantStepErr] = "error in TupleConstantStep.";
|
||||
fErrorCodes[tupleHavingStepErr] = "error in TupleHavingStep.";
|
||||
fErrorCodes[aggregateResourceErr] = "Memory required to perform aggregation exceeds the RowAggregation/MaxMemory setting.";
|
||||
fErrorCodes[makeJobListErr] = "error in MakeJobList.";
|
||||
fErrorCodes[aggregateFuncErr] = "unsupported aggregation function.";
|
||||
fErrorCodes[aggregateDataErr] = "aggregation data overflow.";
|
||||
fErrorCodes[batchPrimitiveProcessorErr] = "error in BatchPrimitiveProcessor.";
|
||||
fErrorCodes[bppSeederErr] = "error in bppSeeder.";
|
||||
fErrorCodes[primitiveServerErr] = "error in PrimitiveServer.";
|
||||
fErrorCodes[projectResultErr] = "error in BatchPrimitiveProcessor projectResult. Please check crit.log for more details.";
|
||||
fErrorCodes[hwmRangeSizeErr] = "error in PrimitiveServer load block with HWM. Please check crit.log for more details.";
|
||||
fErrorCodes[formatErr] = "format mismatch.";
|
||||
fErrorCodes[dataTypeErr] = "data type unknown.";
|
||||
fErrorCodes[incompatJoinCols] = "incompatible column types specified for join condition.";
|
||||
fErrorCodes[incompatFilterCols] = "incompatible column types specified for filter condition.";
|
||||
fErrorCodes[batchPrimitiveStepErr] = "error in BatchPrimitiveStep.";
|
||||
fErrorCodes[tupleBPSErr] = "error in TupleBPS.";
|
||||
fErrorCodes[batchPrimitiveStepLargeDataListFileErr] =
|
||||
"error in BatchPrimitiveStep LargeDataList File handling.";
|
||||
fErrorCodes[bucketReuseStepErr] = "error in BucketReuseStep.";
|
||||
fErrorCodes[bucketReuseStepLargeDataListFileErr] = "error in bucketReuseStep LargeDataList File handling.";
|
||||
fErrorCodes[aggregateFilterStepErr] = "error in AggregateFilterStep.";
|
||||
fErrorCodes[filterStepErr] = "error in FilterStep.";
|
||||
fErrorCodes[functionStepErr] = "error in FunctionStep.";
|
||||
fErrorCodes[hashJoinStepErr] = "error in HashJoinStep.";
|
||||
fErrorCodes[hashJoinStepLargeDataListFileErr] = "error in HashJoinStep LargeDataList File handling.";
|
||||
fErrorCodes[largeHashJoinErr] = "error in LargeHashJoin.";
|
||||
fErrorCodes[largeHashJoinLargeDataListFileErr] = "error in LargeHashJoin LargeDataList File handling.";
|
||||
fErrorCodes[stringHashJoinStepErr] = "error in StringHashJoinStep.";
|
||||
fErrorCodes[stringHashJoinStepLargeDataListFileErr] =
|
||||
"error in StringHashJoinStep LargeDataList File handling.";
|
||||
fErrorCodes[tupleHashJoinTooBigErr] = "error in TupleHashJoin: join is too big.";
|
||||
fErrorCodes[threadResourceErr] = "error in ExeMgr: too many threads on the system.";
|
||||
fErrorCodes[pDictionaryScanErr] = "error in pDictionaryScan.";
|
||||
fErrorCodes[pDictionaryScanLargeDataListFileErr] = "error in pDictionaryScan LargeDataList File handling.";
|
||||
fErrorCodes[pIdxListErr] = "error in pIdxList.";
|
||||
fErrorCodes[pIdxWalkErr] = "error in pIdxWalk.";
|
||||
fErrorCodes[pnlJoinErr] = "error in PNLJoinErr.";
|
||||
fErrorCodes[reduceStepErr] = "error in ReduceStep.";
|
||||
fErrorCodes[reduceStepLargeDataListFileErr] = "error in ReduceStep LargeDataList File handling.";
|
||||
fErrorCodes[unionStepErr] = "error in UnionStep.";
|
||||
fErrorCodes[unionStepLargeDataListFileErr] = "error in UnionStep LargeDataList File handling.";
|
||||
fErrorCodes[unionStepTooBigErr] = "the union required too much memory.";
|
||||
fErrorCodes[tupleAggregateStepErr] = "error in TupleAggregateStep.";
|
||||
fErrorCodes[tupleConstantStepErr] = "error in TupleConstantStep.";
|
||||
fErrorCodes[tupleHavingStepErr] = "error in TupleHavingStep.";
|
||||
fErrorCodes[aggregateResourceErr] =
|
||||
"Memory required to perform aggregation exceeds the RowAggregation/MaxMemory setting.";
|
||||
fErrorCodes[makeJobListErr] = "error in MakeJobList.";
|
||||
fErrorCodes[aggregateFuncErr] = "unsupported aggregation function.";
|
||||
fErrorCodes[aggregateDataErr] = "aggregation data overflow.";
|
||||
fErrorCodes[batchPrimitiveProcessorErr] = "error in BatchPrimitiveProcessor.";
|
||||
fErrorCodes[bppSeederErr] = "error in bppSeeder.";
|
||||
fErrorCodes[primitiveServerErr] = "error in PrimitiveServer.";
|
||||
fErrorCodes[projectResultErr] =
|
||||
"error in BatchPrimitiveProcessor projectResult. Please check crit.log for more details.";
|
||||
fErrorCodes[hwmRangeSizeErr] =
|
||||
"error in PrimitiveServer load block with HWM. Please check crit.log for more details.";
|
||||
fErrorCodes[formatErr] = "format mismatch.";
|
||||
fErrorCodes[dataTypeErr] = "data type unknown.";
|
||||
fErrorCodes[incompatJoinCols] = "incompatible column types specified for join condition.";
|
||||
fErrorCodes[incompatFilterCols] = "incompatible column types specified for filter condition.";
|
||||
}
|
||||
|
||||
string ErrorCodes::errorString(uint16_t code) const
|
||||
{
|
||||
CodeMap::const_iterator iter;
|
||||
CodeMap::key_type key = static_cast<CodeMap::key_type>(code);
|
||||
CodeMap::mapped_type msg;
|
||||
CodeMap::const_iterator iter;
|
||||
CodeMap::key_type key = static_cast<CodeMap::key_type>(code);
|
||||
CodeMap::mapped_type msg;
|
||||
|
||||
iter = fErrorCodes.find(key);
|
||||
iter = fErrorCodes.find(key);
|
||||
|
||||
if (iter == fErrorCodes.end())
|
||||
{
|
||||
msg = "was an unknown internal error.";
|
||||
}
|
||||
else
|
||||
{
|
||||
msg = iter->second;
|
||||
}
|
||||
if (iter == fErrorCodes.end())
|
||||
{
|
||||
msg = "was an unknown internal error.";
|
||||
}
|
||||
else
|
||||
{
|
||||
msg = iter->second;
|
||||
}
|
||||
|
||||
return (fPreamble + msg);
|
||||
return (fPreamble + msg);
|
||||
}
|
||||
} //namespace logging
|
||||
} // namespace logging
|
||||
// vim:ts=4 sw=4:
|
||||
|
||||
|
Reference in New Issue
Block a user