1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

chore(build): fixes to satisfy clang19 warnings

This commit is contained in:
Leonid Fedorov
2025-05-08 15:26:36 +00:00
committed by Leonid Fedorov
parent 9fd7f342a7
commit a0bee173f6
334 changed files with 3062 additions and 3323 deletions

View File

@ -616,27 +616,29 @@ int TypeHandlerBinary::storeValueToField(rowgroup::Row &row, int pos,
/****************************************************************************/
string TypeHandlerDate::format(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& attr) const
string TypeHandlerDate::format(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return DataConvert::dateToString(v.toSInt64());
}
string TypeHandlerDatetime::format(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& attr) const
string TypeHandlerDatetime::format(const SimpleValue& v,
const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return DataConvert::datetimeToString(v.toSInt64());
}
string TypeHandlerTimestamp::format(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& attr) const
string TypeHandlerTimestamp::format(const SimpleValue& v,
const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return DataConvert::timestampToString(v.toSInt64(), v.timeZone());
}
string TypeHandlerTime::format(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& attr) const
string TypeHandlerTime::format(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return DataConvert::timeToString(v.toSInt64());
}
string TypeHandlerChar::format(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& attr) const
string TypeHandlerChar::format(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
// swap again to retain the string byte order
ostringstream oss;
@ -645,7 +647,8 @@ string TypeHandlerChar::format(const SimpleValue& v, const SystemCatalog::TypeAt
return oss.str();
}
string TypeHandlerVarchar::format(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& attr) const
string TypeHandlerVarchar::format(const SimpleValue& v,
const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
// swap again to retain the string byte order
ostringstream oss;
@ -654,21 +657,24 @@ string TypeHandlerVarchar::format(const SimpleValue& v, const SystemCatalog::Typ
return oss.str();
}
string TypeHandlerInt::formatSInt64(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& attr) const
string TypeHandlerInt::formatSInt64(const SimpleValue& v,
const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
ostringstream oss;
oss << v.toSInt64();
return oss.str();
}
string TypeHandlerInt::formatUInt64(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& attr) const
string TypeHandlerInt::formatUInt64(const SimpleValue& v,
const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
ostringstream oss;
oss << static_cast<uint64_t>(v.toSInt64());
return oss.str();
}
string TypeHandlerVarbinary::format(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& attr) const
string TypeHandlerVarbinary::format(const SimpleValue& /*v*/,
const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return "N/A";
}
@ -839,7 +845,7 @@ execplan::SimpleColumn* TypeHandlerSInt64::newSimpleColumn(const DatabaseQualifi
}
execplan::SimpleColumn* TypeHandlerUInt8::newSimpleColumn(const DatabaseQualifiedColumnName& name,
SystemCatalog::TypeHolderStd& ct,
SystemCatalog::TypeHolderStd& /*ct*/,
const SimpleColumnParam& prm) const
{
// QQ: why scale is not checked (unlike SInt1)?
@ -848,7 +854,7 @@ execplan::SimpleColumn* TypeHandlerUInt8::newSimpleColumn(const DatabaseQualifie
}
execplan::SimpleColumn* TypeHandlerUInt16::newSimpleColumn(const DatabaseQualifiedColumnName& name,
SystemCatalog::TypeHolderStd& ct,
SystemCatalog::TypeHolderStd& /*ct*/,
const SimpleColumnParam& prm) const
{
return new execplan::SimpleColumn_UINT<2>(name.db(), name.table(), name.column(), prm.columnStore(),
@ -856,7 +862,7 @@ execplan::SimpleColumn* TypeHandlerUInt16::newSimpleColumn(const DatabaseQualifi
}
execplan::SimpleColumn* TypeHandlerUInt24::newSimpleColumn(const DatabaseQualifiedColumnName& name,
SystemCatalog::TypeHolderStd& ct,
SystemCatalog::TypeHolderStd& /*ct*/,
const SimpleColumnParam& prm) const
{
return new execplan::SimpleColumn_UINT<4>(name.db(), name.table(), name.column(), prm.columnStore(),
@ -864,7 +870,7 @@ execplan::SimpleColumn* TypeHandlerUInt24::newSimpleColumn(const DatabaseQualifi
}
execplan::SimpleColumn* TypeHandlerUInt32::newSimpleColumn(const DatabaseQualifiedColumnName& name,
SystemCatalog::TypeHolderStd& ct,
SystemCatalog::TypeHolderStd& /*ct*/,
const SimpleColumnParam& prm) const
{
return new execplan::SimpleColumn_UINT<4>(name.db(), name.table(), name.column(), prm.columnStore(),
@ -872,7 +878,7 @@ execplan::SimpleColumn* TypeHandlerUInt32::newSimpleColumn(const DatabaseQualifi
}
execplan::SimpleColumn* TypeHandlerUInt64::newSimpleColumn(const DatabaseQualifiedColumnName& name,
SystemCatalog::TypeHolderStd& ct,
SystemCatalog::TypeHolderStd& /*ct*/,
const SimpleColumnParam& prm) const
{
return new execplan::SimpleColumn_UINT<8>(name.db(), name.table(), name.column(), prm.columnStore(),
@ -880,7 +886,7 @@ execplan::SimpleColumn* TypeHandlerUInt64::newSimpleColumn(const DatabaseQualifi
}
execplan::SimpleColumn* TypeHandlerReal::newSimpleColumn(const DatabaseQualifiedColumnName& name,
SystemCatalog::TypeHolderStd& ct,
SystemCatalog::TypeHolderStd& /*ct*/,
const SimpleColumnParam& prm) const
{
// QQ
@ -889,7 +895,7 @@ execplan::SimpleColumn* TypeHandlerReal::newSimpleColumn(const DatabaseQualified
}
execplan::SimpleColumn* TypeHandlerXDecimal::newSimpleColumn(const DatabaseQualifiedColumnName& name,
SystemCatalog::TypeHolderStd& ct,
SystemCatalog::TypeHolderStd& /*ct*/,
const SimpleColumnParam& prm) const
{
// QQ
@ -898,7 +904,7 @@ execplan::SimpleColumn* TypeHandlerXDecimal::newSimpleColumn(const DatabaseQuali
}
execplan::SimpleColumn* TypeHandlerStr::newSimpleColumn(const DatabaseQualifiedColumnName& name,
SystemCatalog::TypeHolderStd& ct,
SystemCatalog::TypeHolderStd& /*ct*/,
const SimpleColumnParam& prm) const
{
// QQ
@ -907,7 +913,7 @@ execplan::SimpleColumn* TypeHandlerStr::newSimpleColumn(const DatabaseQualifiedC
}
execplan::SimpleColumn* TypeHandlerTemporal::newSimpleColumn(const DatabaseQualifiedColumnName& name,
SystemCatalog::TypeHolderStd& ct,
SystemCatalog::TypeHolderStd& /*ct*/,
const SimpleColumnParam& prm) const
{
// QQ
@ -1038,42 +1044,42 @@ SimpleValue toSimpleValueUInt(const SessionParam& sp, const TypeHandler* h,
SimpleValue TypeHandlerUInt8::toSimpleValue(const SessionParam& sp,
const SystemCatalog::TypeAttributesStd& attr, const char* str,
round_style_t& rf) const
round_style_t& /*rf*/) const
{
return toSimpleValueUInt<uint8_t>(sp, this, attr, str);
}
SimpleValue TypeHandlerUInt16::toSimpleValue(const SessionParam& sp,
const SystemCatalog::TypeAttributesStd& attr, const char* str,
round_style_t& rf) const
round_style_t& /*rf*/) const
{
return toSimpleValueUInt<uint16_t>(sp, this, attr, str);
}
SimpleValue TypeHandlerUInt24::toSimpleValue(const SessionParam& sp,
const SystemCatalog::TypeAttributesStd& attr, const char* str,
round_style_t& rf) const
round_style_t& /*rf*/) const
{
return toSimpleValueUInt<uint32_t>(sp, this, attr, str);
}
SimpleValue TypeHandlerUInt32::toSimpleValue(const SessionParam& sp,
const SystemCatalog::TypeAttributesStd& attr, const char* str,
round_style_t& rf) const
round_style_t& /*rf*/) const
{
return toSimpleValueUInt<uint32_t>(sp, this, attr, str);
}
SimpleValue TypeHandlerUInt64::toSimpleValue(const SessionParam& sp,
const SystemCatalog::TypeAttributesStd& attr, const char* str,
round_style_t& rf) const
round_style_t& /*rf*/) const
{
return toSimpleValueUInt<uint64_t>(sp, this, attr, str);
}
SimpleValue TypeHandlerDate::toSimpleValue(const SessionParam& sp,
const SystemCatalog::TypeAttributesStd& attr, const char* str,
round_style_t& rf) const
round_style_t& /*rf*/) const
{
idbassert(attr.colWidth <= SystemCatalog::EIGHT_BYTE);
SimpleConverter anyVal(sp, this, attr, str);
@ -1082,7 +1088,7 @@ SimpleValue TypeHandlerDate::toSimpleValue(const SessionParam& sp,
SimpleValue TypeHandlerDatetime::toSimpleValue(const SessionParam& sp,
const SystemCatalog::TypeAttributesStd& attr, const char* str,
round_style_t& rf) const
round_style_t& /*rf*/) const
{
idbassert(attr.colWidth <= SystemCatalog::EIGHT_BYTE);
SimpleConverter anyVal(sp, this, attr, str);
@ -1091,7 +1097,7 @@ SimpleValue TypeHandlerDatetime::toSimpleValue(const SessionParam& sp,
SimpleValue TypeHandlerTimestamp::toSimpleValue(const SessionParam& sp,
const SystemCatalog::TypeAttributesStd& attr, const char* str,
round_style_t& rf) const
round_style_t& /*rf*/) const
{
idbassert(attr.colWidth <= SystemCatalog::EIGHT_BYTE);
SimpleConverter anyVal(sp, this, attr, str);
@ -1100,7 +1106,7 @@ SimpleValue TypeHandlerTimestamp::toSimpleValue(const SessionParam& sp,
SimpleValue TypeHandlerTime::toSimpleValue(const SessionParam& sp,
const SystemCatalog::TypeAttributesStd& attr, const char* str,
round_style_t& rf) const
round_style_t& /*rf*/) const
{
idbassert(attr.colWidth <= SystemCatalog::EIGHT_BYTE);
SimpleConverter anyVal(sp, this, attr, str);
@ -1157,7 +1163,7 @@ MinMaxPartitionInfo::MinMaxPartitionInfo(const BRM::EMEntry& entry)
{
}
MinMaxPartitionInfo TypeHandler::getExtentPartitionInfo(const SystemCatalog::TypeAttributesStd& attr,
MinMaxPartitionInfo TypeHandler::getExtentPartitionInfo(const SystemCatalog::TypeAttributesStd& /*attr*/,
BRM::DBRM& em, const BRM::EMEntry& entry,
int* state) const
{
@ -1168,7 +1174,8 @@ MinMaxPartitionInfo TypeHandler::getExtentPartitionInfo(const SystemCatalog::Typ
}
MinMaxPartitionInfo TypeHandlerXDecimal::getExtentPartitionInfo64(
const SystemCatalog::TypeAttributesStd& attr, BRM::DBRM& em, const BRM::EMEntry& entry, int* state) const
const SystemCatalog::TypeAttributesStd& /*attr*/, BRM::DBRM& em, const BRM::EMEntry& entry,
int* state) const
{
int32_t seqNum;
MinMaxPartitionInfo partInfo(entry);
@ -1177,7 +1184,8 @@ MinMaxPartitionInfo TypeHandlerXDecimal::getExtentPartitionInfo64(
}
MinMaxPartitionInfo TypeHandlerXDecimal::getExtentPartitionInfo128(
const SystemCatalog::TypeAttributesStd& attr, BRM::DBRM& em, const BRM::EMEntry& entry, int* state) const
const SystemCatalog::TypeAttributesStd& /*attr*/, BRM::DBRM& em, const BRM::EMEntry& entry,
int* state) const
{
int32_t seqNum;
MinMaxPartitionInfo partInfo(entry);
@ -1273,70 +1281,70 @@ string TypeHandlerXDecimal::PrintPartitionValue128(const SystemCatalog::TypeAttr
/****************************************************************************/
boost::any TypeHandlerSInt8::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerSInt8::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
char tinyintvalue = joblist::TINYINTNULL;
boost::any value = tinyintvalue;
return value;
}
boost::any TypeHandlerUInt8::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerUInt8::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
uint8_t utinyintvalue = joblist::UTINYINTNULL;
boost::any value = utinyintvalue;
return value;
}
boost::any TypeHandlerSInt16::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerSInt16::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
short smallintvalue = joblist::SMALLINTNULL;
boost::any value = smallintvalue;
return value;
}
boost::any TypeHandlerUInt16::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerUInt16::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
uint16_t usmallintvalue = joblist::USMALLINTNULL;
boost::any value = usmallintvalue;
return value;
}
boost::any TypeHandlerSInt24::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerSInt24::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
int intvalue = joblist::INTNULL;
boost::any value = intvalue;
return value;
}
boost::any TypeHandlerSInt32::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerSInt32::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
int intvalue = joblist::INTNULL;
boost::any value = intvalue;
return value;
}
boost::any TypeHandlerUInt24::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerUInt24::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
uint32_t uintvalue = joblist::UINTNULL;
boost::any value = uintvalue;
return value;
}
boost::any TypeHandlerUInt32::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerUInt32::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
uint32_t uintvalue = joblist::UINTNULL;
boost::any value = uintvalue;
return value;
}
boost::any TypeHandlerSInt64::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerSInt64::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
long long bigint = joblist::BIGINTNULL;
boost::any value = bigint;
return value;
}
boost::any TypeHandlerUInt64::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerUInt64::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
uint64_t ubigint = joblist::UBIGINTNULL;
boost::any value = ubigint;
@ -1381,7 +1389,7 @@ boost::any TypeHandlerXDecimal::getNullValueForType(const SystemCatalog::TypeAtt
return value;
}
boost::any TypeHandlerSFloat::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerSFloat::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
uint32_t jlfloatnull = joblist::FLOATNULL;
float* fp = reinterpret_cast<float*>(&jlfloatnull);
@ -1389,7 +1397,7 @@ boost::any TypeHandlerSFloat::getNullValueForType(const SystemCatalog::TypeAttri
return value;
}
boost::any TypeHandlerUFloat::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerUFloat::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
uint32_t jlfloatnull = joblist::FLOATNULL;
float* fp = reinterpret_cast<float*>(&jlfloatnull);
@ -1397,7 +1405,7 @@ boost::any TypeHandlerUFloat::getNullValueForType(const SystemCatalog::TypeAttri
return value;
}
boost::any TypeHandlerSDouble::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerSDouble::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
uint64_t jldoublenull = joblist::DOUBLENULL;
double* dp = reinterpret_cast<double*>(&jldoublenull);
@ -1405,7 +1413,7 @@ boost::any TypeHandlerSDouble::getNullValueForType(const SystemCatalog::TypeAttr
return value;
}
boost::any TypeHandlerUDouble::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerUDouble::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
uint64_t jldoublenull = joblist::DOUBLENULL;
double* dp = reinterpret_cast<double*>(&jldoublenull);
@ -1413,28 +1421,28 @@ boost::any TypeHandlerUDouble::getNullValueForType(const SystemCatalog::TypeAttr
return value;
}
boost::any TypeHandlerDate::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerDate::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
uint32_t d = joblist::DATENULL;
boost::any value = d;
return value;
}
boost::any TypeHandlerDatetime::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerDatetime::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
uint64_t d = joblist::DATETIMENULL;
boost::any value = d;
return value;
}
boost::any TypeHandlerTime::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerTime::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
int64_t d = joblist::TIMENULL;
boost::any value = d;
return value;
}
boost::any TypeHandlerTimestamp::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerTimestamp::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
uint64_t d = joblist::TIMESTAMPNULL;
boost::any value = d;
@ -1518,14 +1526,14 @@ boost::any TypeHandlerStr::getNullValueForTypeVarcharText(const SystemCatalog::T
return value;
}
boost::any TypeHandlerBlob::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerBlob::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
WriteEngine::Token nullToken;
boost::any value = nullToken;
return value;
}
boost::any TypeHandlerVarbinary::getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const
boost::any TypeHandlerVarbinary::getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
WriteEngine::Token nullToken;
boost::any value = nullToken;
@ -1637,56 +1645,56 @@ boost::any TypeHandlerUInt64::convertFromString(const SystemCatalog::TypeAttribu
return value;
}
boost::any TypeHandlerSFloat::convertFromString(const SystemCatalog::TypeAttributesStd& colType,
const ConvertFromStringParam& prm, const std::string& data,
bool& pushWarning) const
boost::any TypeHandlerSFloat::convertFromString(const SystemCatalog::TypeAttributesStd& /*colType*/,
const ConvertFromStringParam& /*prm*/,
const std::string& data, bool& pushWarning) const
{
return dataconvert::DataConvert::StringToFloat(SystemCatalog::FLOAT, data, pushWarning);
}
boost::any TypeHandlerUFloat::convertFromString(const SystemCatalog::TypeAttributesStd& colType,
const ConvertFromStringParam& prm, const std::string& data,
bool& pushWarning) const
boost::any TypeHandlerUFloat::convertFromString(const SystemCatalog::TypeAttributesStd& /*colType*/,
const ConvertFromStringParam& /*prm*/,
const std::string& data, bool& pushWarning) const
{
return dataconvert::DataConvert::StringToFloat(SystemCatalog::UFLOAT, data, pushWarning);
}
boost::any TypeHandlerSDouble::convertFromString(const SystemCatalog::TypeAttributesStd& colType,
const ConvertFromStringParam& prm, const std::string& data,
bool& pushWarning) const
boost::any TypeHandlerSDouble::convertFromString(const SystemCatalog::TypeAttributesStd& /*colType*/,
const ConvertFromStringParam& /*prm*/,
const std::string& data, bool& pushWarning) const
{
return dataconvert::DataConvert::StringToDouble(SystemCatalog::DOUBLE, data, pushWarning);
}
boost::any TypeHandlerUDouble::convertFromString(const SystemCatalog::TypeAttributesStd& colType,
const ConvertFromStringParam& prm, const std::string& data,
bool& pushWarning) const
boost::any TypeHandlerUDouble::convertFromString(const SystemCatalog::TypeAttributesStd& /*colType*/,
const ConvertFromStringParam& /*prm*/,
const std::string& data, bool& pushWarning) const
{
return dataconvert::DataConvert::StringToDouble(SystemCatalog::UDOUBLE, data, pushWarning);
}
boost::any TypeHandlerDate::convertFromString(const SystemCatalog::TypeAttributesStd& colType,
const ConvertFromStringParam& prm, const std::string& data,
boost::any TypeHandlerDate::convertFromString(const SystemCatalog::TypeAttributesStd& /*colType*/,
const ConvertFromStringParam& /*prm*/, const std::string& data,
bool& pushWarning) const
{
return dataconvert::DataConvert::StringToDate(data, pushWarning);
}
boost::any TypeHandlerDatetime::convertFromString(const SystemCatalog::TypeAttributesStd& colType,
const ConvertFromStringParam& prm, const std::string& data,
bool& pushWarning) const
boost::any TypeHandlerDatetime::convertFromString(const SystemCatalog::TypeAttributesStd& /*colType*/,
const ConvertFromStringParam& /*prm*/,
const std::string& data, bool& pushWarning) const
{
return dataconvert::DataConvert::StringToDatetime(data, pushWarning);
}
boost::any TypeHandlerTime::convertFromString(const SystemCatalog::TypeAttributesStd& colType,
const ConvertFromStringParam& prm, const std::string& data,
const ConvertFromStringParam& /*prm*/, const std::string& data,
bool& pushWarning) const
{
return dataconvert::DataConvert::StringToTime(colType, data, pushWarning);
}
boost::any TypeHandlerTimestamp::convertFromString(const SystemCatalog::TypeAttributesStd& colType,
boost::any TypeHandlerTimestamp::convertFromString(const SystemCatalog::TypeAttributesStd& /*colType*/,
const ConvertFromStringParam& prm, const std::string& data,
bool& pushWarning) const
{
@ -1694,45 +1702,45 @@ boost::any TypeHandlerTimestamp::convertFromString(const SystemCatalog::TypeAttr
}
boost::any TypeHandlerChar::convertFromString(const SystemCatalog::TypeAttributesStd& colType,
const ConvertFromStringParam& prm, const std::string& data,
const ConvertFromStringParam& /*prm*/, const std::string& data,
bool& pushWarning) const
{
return dataconvert::DataConvert::StringToString(colType, data, pushWarning);
}
boost::any TypeHandlerVarchar::convertFromString(const SystemCatalog::TypeAttributesStd& colType,
const ConvertFromStringParam& prm, const std::string& data,
bool& pushWarning) const
const ConvertFromStringParam& /*prm*/,
const std::string& data, bool& pushWarning) const
{
return dataconvert::DataConvert::StringToString(colType, data, pushWarning);
}
boost::any TypeHandlerText::convertFromString(const SystemCatalog::TypeAttributesStd& colType,
const ConvertFromStringParam& prm, const std::string& data,
const ConvertFromStringParam& /*prm*/, const std::string& data,
bool& pushWarning) const
{
return dataconvert::DataConvert::StringToString(colType, data, pushWarning);
}
boost::any TypeHandlerClob::convertFromString(const SystemCatalog::TypeAttributesStd& colType,
const ConvertFromStringParam& prm, const std::string& data,
bool& pushWarning) const
boost::any TypeHandlerClob::convertFromString(const SystemCatalog::TypeAttributesStd& /*colType*/,
const ConvertFromStringParam& /*prm*/, const std::string& data,
bool& /*pushWarning*/) const
{
boost::any value = data;
return value;
}
boost::any TypeHandlerBlob::convertFromString(const SystemCatalog::TypeAttributesStd& colType,
const ConvertFromStringParam& prm, const std::string& data,
bool& pushWarning) const
boost::any TypeHandlerBlob::convertFromString(const SystemCatalog::TypeAttributesStd& /*colType*/,
const ConvertFromStringParam& /*prm*/, const std::string& data,
bool& /*pushWarning*/) const
{
boost::any value = data;
return value;
}
boost::any TypeHandlerVarbinary::convertFromString(const SystemCatalog::TypeAttributesStd& colType,
const ConvertFromStringParam& prm, const std::string& data,
bool& pushWarning) const
boost::any TypeHandlerVarbinary::convertFromString(const SystemCatalog::TypeAttributesStd& /*colType*/,
const ConvertFromStringParam& /*prm*/,
const std::string& data, bool& /*pushWarning*/) const
{
boost::any value = data;
return value;
@ -1773,7 +1781,7 @@ const uint8_t* getEmptyTypeHandlerSInt8()
return &TINYINTEMPTYROW;
}
const uint8_t* TypeHandlerSInt8::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& attr) const
const uint8_t* TypeHandlerSInt8::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return getEmptyTypeHandlerSInt8();
}
@ -1784,7 +1792,7 @@ const uint8_t* getEmptyTypeHandlerSInt16()
return reinterpret_cast<const uint8_t*>(&SMALLINTEMPTYROW);
}
const uint8_t* TypeHandlerSInt16::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& attr) const
const uint8_t* TypeHandlerSInt16::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return getEmptyTypeHandlerSInt16();
}
@ -1795,12 +1803,12 @@ const uint8_t* getEmptyTypeHandlerSInt32()
return reinterpret_cast<const uint8_t*>(&INTEMPTYROW);
}
const uint8_t* TypeHandlerSInt24::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& attr) const
const uint8_t* TypeHandlerSInt24::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return getEmptyTypeHandlerSInt32();
}
const uint8_t* TypeHandlerSInt32::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& attr) const
const uint8_t* TypeHandlerSInt32::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return getEmptyTypeHandlerSInt32();
}
@ -1811,18 +1819,18 @@ const uint8_t* getEmptyTypeHandlerSInt64()
return reinterpret_cast<const uint8_t*>(&BIGINTEMPTYROW);
}
const uint8_t* TypeHandlerSInt64::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& attr) const
const uint8_t* TypeHandlerSInt64::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return getEmptyTypeHandlerSInt64();
}
const uint8_t* TypeHandlerUInt8::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& attr) const
const uint8_t* TypeHandlerUInt8::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
const static uint8_t UTINYINTEMPTYROW = joblist::UTINYINTEMPTYROW;
return reinterpret_cast<const uint8_t*>(&UTINYINTEMPTYROW);
}
const uint8_t* TypeHandlerUInt16::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& attr) const
const uint8_t* TypeHandlerUInt16::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
const static uint16_t USMALLINTEMPTYROW = joblist::USMALLINTEMPTYROW;
return reinterpret_cast<const uint8_t*>(&USMALLINTEMPTYROW);
@ -1834,23 +1842,23 @@ const uint8_t* getEmptyTypeHandlerUInt32()
return reinterpret_cast<const uint8_t*>(&UINTEMPTYROW);
}
const uint8_t* TypeHandlerUInt24::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& attr) const
const uint8_t* TypeHandlerUInt24::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return getEmptyTypeHandlerUInt32();
}
const uint8_t* TypeHandlerUInt32::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& attr) const
const uint8_t* TypeHandlerUInt32::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return getEmptyTypeHandlerUInt32();
}
const uint8_t* TypeHandlerUInt64::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& attr) const
const uint8_t* TypeHandlerUInt64::getEmptyValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
const static uint64_t UBIGINTEMPTYROW = joblist::UBIGINTEMPTYROW;
return reinterpret_cast<const uint8_t*>(&UBIGINTEMPTYROW);
}
const uint8_t* getEmptyTypeHandlerFloat(const SystemCatalog::TypeAttributesStd& attr)
const uint8_t* getEmptyTypeHandlerFloat(const SystemCatalog::TypeAttributesStd& /*attr*/)
{
const static uint32_t FLOATEMPTYROW = joblist::FLOATEMPTYROW;
return reinterpret_cast<const uint8_t*>(&FLOATEMPTYROW);
@ -1866,7 +1874,7 @@ const uint8_t* TypeHandlerSFloat::getEmptyValueForType(const SystemCatalog::Type
return getEmptyTypeHandlerFloat(attr);
}
const uint8_t* getEmptyTypeHandlerDouble(const SystemCatalog::TypeAttributesStd& attr)
const uint8_t* getEmptyTypeHandlerDouble(const SystemCatalog::TypeAttributesStd& /*attr*/)
{
const static uint64_t DOUBLEEMPTYROW = joblist::DOUBLEEMPTYROW;
return reinterpret_cast<const uint8_t*>(&DOUBLEEMPTYROW);
@ -1936,13 +1944,13 @@ const uint8_t* TypeHandlerUDecimal64::getEmptyValueForType(const SystemCatalog::
}
const uint8_t* TypeHandlerSDecimal128::getEmptyValueForType(
const SystemCatalog::TypeAttributesStd& attr) const
const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return reinterpret_cast<const uint8_t*>(&datatypes::Decimal128Empty);
}
const uint8_t* TypeHandlerUDecimal128::getEmptyValueForType(
const SystemCatalog::TypeAttributesStd& attr) const
const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return reinterpret_cast<const uint8_t*>(&datatypes::Decimal128Empty);
}
@ -1950,4 +1958,3 @@ const uint8_t* TypeHandlerUDecimal128::getEmptyValueForType(
/****************************************************************************/
} // end of namespace datatypes

View File

@ -1020,16 +1020,16 @@ class TypeHandler
virtual ~TypeHandler() = default;
virtual const string& name() const = 0;
virtual const string print(const SystemCatalog::TypeAttributesStd& attr) const
virtual const string print(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return name();
}
virtual code_t code() const = 0;
virtual bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const
virtual bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return false;
}
virtual uint8_t PartitionValueCharLength(const SystemCatalog::TypeAttributesStd& attr) const
virtual uint8_t PartitionValueCharLength(const SystemCatalog::TypeAttributesStd& /*attr*/) const
{
return 30;
}
@ -1054,7 +1054,7 @@ class TypeHandler
}
virtual SimpleValue toSimpleValue(const SessionParam& sp, const SystemCatalog::TypeAttributesStd& attr,
const char* str, round_style_t& rf) const = 0;
virtual MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& attr, const MinMaxInfo& a,
virtual MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxInfo& a,
const MinMaxInfo& b) const
{
return MinMaxInfo::widenSInt64(a, b);
@ -1069,7 +1069,7 @@ class TypeHandler
{
return PrintPartitionValueSInt64(attr, partInfo, startVal, rfMin, endVal, rfMax);
}
virtual bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& attr,
virtual bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& /*attr*/,
const MinMaxPartitionInfo& part, const SimpleValue& startVal,
round_style_t rfMin, const SimpleValue& endVal, round_style_t rfMax) const
{
@ -1091,50 +1091,51 @@ class TypeHandlerBit : public TypeHandler
{
return SystemCatalog::BIT;
}
size_t ColWriteBatch(WriteBatchField* field, const unsigned char* buf, bool nullVal,
ColBatchWriter& writer) const override
size_t ColWriteBatch(WriteBatchField* /*field*/, const unsigned char* /*buf*/, bool /*nullVal*/,
ColBatchWriter& /*writer*/) const override
{
idbassert(0); // QQ
return 0;
}
int storeValueToField(rowgroup::Row& row, int pos, StoreField* f) const override
int storeValueToField(rowgroup::Row& /*row*/, int /*pos*/, StoreField* /*f*/) const override
{
idbassert(0); // QQ
return 1;
}
std::string format(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& attr) const override
std::string format(const SimpleValue& /*v*/, const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return "0"; // QQ
}
std::string formatPartitionInfo(const SystemCatalog::TypeAttributesStd& attr,
const MinMaxInfo& i) const override
std::string formatPartitionInfo(const SystemCatalog::TypeAttributesStd& /*attr*/,
const MinMaxInfo& /*i*/) const override
{
idbassert(0);
return "Error";
}
execplan::SimpleColumn* newSimpleColumn(const DatabaseQualifiedColumnName& name,
SystemCatalog::TypeHolderStd& ct,
const SimpleColumnParam& prm) const override
execplan::SimpleColumn* newSimpleColumn(const DatabaseQualifiedColumnName& /*name*/,
SystemCatalog::TypeHolderStd& /*ct*/,
const SimpleColumnParam& /*prm*/) const override
{
idbassert(0);
return nullptr;
}
SimpleValue toSimpleValue(const SessionParam& sp, const SystemCatalog::TypeAttributesStd& attr,
const char* str, round_style_t& rf) const override
SimpleValue toSimpleValue(const SessionParam& /*sp*/, const SystemCatalog::TypeAttributesStd& /*attr*/,
const char* /*str*/, round_style_t& /*rf*/) const override
{
idbassert(0);
return {};
}
boost::any getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const override
boost::any getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
// TODO: How to communicate with write engine?
return {};
}
boost::any convertFromString(const SystemCatalog::TypeAttributesStd& colType,
const ConvertFromStringParam& prm, const std::string& str,
bool& pushWarning) const override;
const uint8_t* getEmptyValueForType(const SystemCatalog::TypeAttributesStd& attr) const override
boost::any convertFromString(const SystemCatalog::TypeAttributesStd& /*colType*/,
const ConvertFromStringParam& /*prm*/, const std::string& /*str*/,
bool& /*pushWarning*/) const override;
const uint8_t* getEmptyValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
idbassert(0);
return nullptr;
@ -1158,7 +1159,7 @@ class TypeHandlerSInt8 : public TypeHandlerInt
{
return SystemCatalog::TINYINT;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
@ -1205,7 +1206,7 @@ class TypeHandlerSInt16 : public TypeHandlerInt
{
return SystemCatalog::SMALLINT;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
@ -1251,7 +1252,7 @@ class TypeHandlerSInt24 : public TypeHandlerInt
{
return SystemCatalog::MEDINT;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
@ -1300,7 +1301,7 @@ class TypeHandlerSInt32 : public TypeHandlerInt
{
return SystemCatalog::INT;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
@ -1349,7 +1350,7 @@ class TypeHandlerSInt64 : public TypeHandlerInt
{
return SystemCatalog::BIGINT;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
@ -1395,7 +1396,7 @@ class TypeHandlerUInt8 : public TypeHandlerInt
{
return SystemCatalog::UTINYINT;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
@ -1428,7 +1429,7 @@ class TypeHandlerUInt8 : public TypeHandlerInt
}
SimpleValue toSimpleValue(const SessionParam& sp, const SystemCatalog::TypeAttributesStd& attr,
const char* str, round_style_t& rf) const override;
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& attr, const MinMaxInfo& a,
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxInfo& a,
const MinMaxInfo& b) const override
{
return MinMaxInfo::widenUInt64(a, b);
@ -1440,7 +1441,7 @@ class TypeHandlerUInt8 : public TypeHandlerInt
{
return PrintPartitionValueUInt64(attr, partInfo, startVal, rfMin, endVal, rfMax);
}
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& attr, const MinMaxPartitionInfo& part,
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxPartitionInfo& part,
const SimpleValue& startVal, round_style_t rfMin, const SimpleValue& endVal,
round_style_t rfMax) const override
{
@ -1460,7 +1461,7 @@ class TypeHandlerUInt16 : public TypeHandlerInt
{
return SystemCatalog::USMALLINT;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
@ -1492,7 +1493,7 @@ class TypeHandlerUInt16 : public TypeHandlerInt
}
SimpleValue toSimpleValue(const SessionParam& sp, const SystemCatalog::TypeAttributesStd& attr,
const char* str, round_style_t& rf) const override;
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& attr, const MinMaxInfo& a,
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxInfo& a,
const MinMaxInfo& b) const override
{
return MinMaxInfo::widenUInt64(a, b);
@ -1504,7 +1505,7 @@ class TypeHandlerUInt16 : public TypeHandlerInt
{
return PrintPartitionValueUInt64(attr, partInfo, startVal, rfMin, endVal, rfMax);
}
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& attr, const MinMaxPartitionInfo& part,
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxPartitionInfo& part,
const SimpleValue& startVal, round_style_t rfMin, const SimpleValue& endVal,
round_style_t rfMax) const override
{
@ -1524,7 +1525,7 @@ class TypeHandlerUInt24 : public TypeHandlerInt
{
return SystemCatalog::UMEDINT;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
@ -1559,7 +1560,7 @@ class TypeHandlerUInt24 : public TypeHandlerInt
}
SimpleValue toSimpleValue(const SessionParam& sp, const SystemCatalog::TypeAttributesStd& attr,
const char* str, round_style_t& rf) const override;
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& attr, const MinMaxInfo& a,
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxInfo& a,
const MinMaxInfo& b) const override
{
return MinMaxInfo::widenUInt64(a, b);
@ -1571,7 +1572,7 @@ class TypeHandlerUInt24 : public TypeHandlerInt
{
return PrintPartitionValueUInt64(attr, partInfo, startVal, rfMin, endVal, rfMax);
}
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& attr, const MinMaxPartitionInfo& part,
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxPartitionInfo& part,
const SimpleValue& startVal, round_style_t rfMin, const SimpleValue& endVal,
round_style_t rfMax) const override
{
@ -1591,7 +1592,7 @@ class TypeHandlerUInt32 : public TypeHandlerInt
{
return SystemCatalog::UINT;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
@ -1626,7 +1627,7 @@ class TypeHandlerUInt32 : public TypeHandlerInt
}
SimpleValue toSimpleValue(const SessionParam& sp, const SystemCatalog::TypeAttributesStd& attr,
const char* str, round_style_t& rf) const override;
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& attr, const MinMaxInfo& a,
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxInfo& a,
const MinMaxInfo& b) const override
{
return MinMaxInfo::widenUInt64(a, b);
@ -1638,7 +1639,7 @@ class TypeHandlerUInt32 : public TypeHandlerInt
{
return PrintPartitionValueUInt64(attr, partInfo, startVal, rfMin, endVal, rfMax);
}
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& attr, const MinMaxPartitionInfo& part,
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxPartitionInfo& part,
const SimpleValue& startVal, round_style_t rfMin, const SimpleValue& endVal,
round_style_t rfMax) const override
{
@ -1658,7 +1659,7 @@ class TypeHandlerUInt64 : public TypeHandlerInt
{
return SystemCatalog::BIGINT;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
@ -1690,7 +1691,7 @@ class TypeHandlerUInt64 : public TypeHandlerInt
}
SimpleValue toSimpleValue(const SessionParam& sp, const SystemCatalog::TypeAttributesStd& attr,
const char* str, round_style_t& rf) const override;
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& attr, const MinMaxInfo& a,
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxInfo& a,
const MinMaxInfo& b) const override
{
return MinMaxInfo::widenUInt64(a, b);
@ -1702,7 +1703,7 @@ class TypeHandlerUInt64 : public TypeHandlerInt
{
return PrintPartitionValueUInt64(attr, partInfo, startVal, rfMin, endVal, rfMax);
}
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& attr, const MinMaxPartitionInfo& part,
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxPartitionInfo& part,
const SimpleValue& startVal, round_style_t rfMin, const SimpleValue& endVal,
round_style_t rfMax) const override
{
@ -1763,11 +1764,11 @@ class TypeHandlerSDecimal64 : public TypeHandlerXDecimal
{
return SystemCatalog::DECIMAL;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
uint8_t PartitionValueCharLength(const SystemCatalog::TypeAttributesStd& attr) const override
uint8_t PartitionValueCharLength(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return 30;
}
@ -1792,7 +1793,7 @@ class TypeHandlerSDecimal64 : public TypeHandlerXDecimal
{
return SimpleValueSInt64(std::numeric_limits<int64_t>::max());
}
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& attr, const MinMaxInfo& a,
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxInfo& a,
const MinMaxInfo& b) const override
{
return MinMaxInfo::widenSInt64(a, b);
@ -1809,7 +1810,7 @@ class TypeHandlerSDecimal64 : public TypeHandlerXDecimal
{
return PrintPartitionValueSInt64(attr, partInfo, startVal, rfMin, endVal, rfMax);
}
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& attr, const MinMaxPartitionInfo& part,
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxPartitionInfo& part,
const SimpleValue& startVal, round_style_t rfMin, const SimpleValue& endVal,
round_style_t rfMax) const override
{
@ -1829,11 +1830,11 @@ class TypeHandlerUDecimal64 : public TypeHandlerXDecimal
{
return SystemCatalog::UDECIMAL;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
uint8_t PartitionValueCharLength(const SystemCatalog::TypeAttributesStd& attr) const override
uint8_t PartitionValueCharLength(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return 30;
}
@ -1858,7 +1859,7 @@ class TypeHandlerUDecimal64 : public TypeHandlerXDecimal
{
return SimpleValueUInt64(std::numeric_limits<uint64_t>::max());
}
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& attr, const MinMaxInfo& a,
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxInfo& a,
const MinMaxInfo& b) const override
{
return MinMaxInfo::widenSInt64(a, b);
@ -1875,7 +1876,7 @@ class TypeHandlerUDecimal64 : public TypeHandlerXDecimal
{
return PrintPartitionValueSInt64(attr, partInfo, startVal, rfMin, endVal, rfMax);
}
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& attr, const MinMaxPartitionInfo& part,
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxPartitionInfo& part,
const SimpleValue& startVal, round_style_t rfMin, const SimpleValue& endVal,
round_style_t rfMax) const override
{
@ -1895,11 +1896,11 @@ class TypeHandlerSDecimal128 : public TypeHandlerXDecimal
{
return SystemCatalog::DECIMAL;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
uint8_t PartitionValueCharLength(const SystemCatalog::TypeAttributesStd& attr) const override
uint8_t PartitionValueCharLength(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return Decimal::MAXLENGTH16BYTES;
}
@ -1924,7 +1925,7 @@ class TypeHandlerSDecimal128 : public TypeHandlerXDecimal
{
return {std::numeric_limits<int64_t>::max(), datatypes::maxInt128, 0};
}
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& attr, const MinMaxInfo& a,
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxInfo& a,
const MinMaxInfo& b) const override
{
return MinMaxInfo::widenSInt128(a, b);
@ -1941,7 +1942,7 @@ class TypeHandlerSDecimal128 : public TypeHandlerXDecimal
{
return PrintPartitionValue128(attr, partInfo, startVal, rfMin, endVal, rfMax);
}
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& attr, const MinMaxPartitionInfo& part,
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxPartitionInfo& part,
const SimpleValue& startVal, round_style_t rfMin, const SimpleValue& endVal,
round_style_t rfMax) const override
{
@ -1961,11 +1962,11 @@ class TypeHandlerUDecimal128 : public TypeHandlerXDecimal
{
return SystemCatalog::UDECIMAL;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
uint8_t PartitionValueCharLength(const SystemCatalog::TypeAttributesStd& attr) const override
uint8_t PartitionValueCharLength(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return Decimal::MAXLENGTH16BYTES;
}
@ -1990,7 +1991,7 @@ class TypeHandlerUDecimal128 : public TypeHandlerXDecimal
{
return SimpleValueSInt128(-1);
}
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& attr, const MinMaxInfo& a,
MinMaxInfo widenMinMaxInfo(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxInfo& a,
const MinMaxInfo& b) const override
{
return MinMaxInfo::widenSInt128(a, b);
@ -2007,7 +2008,7 @@ class TypeHandlerUDecimal128 : public TypeHandlerXDecimal
{
return PrintPartitionValue128(attr, partInfo, startVal, rfMin, endVal, rfMax);
}
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& attr, const MinMaxPartitionInfo& part,
bool isSuitablePartition(const SystemCatalog::TypeAttributesStd& /*attr*/, const MinMaxPartitionInfo& part,
const SimpleValue& startVal, round_style_t rfMin, const SimpleValue& endVal,
round_style_t rfMax) const override
{
@ -2027,12 +2028,12 @@ class TypeHandlerReal : public TypeHandler
execplan::SimpleColumn* newSimpleColumn(const DatabaseQualifiedColumnName& name,
SystemCatalog::TypeHolderStd& ct,
const SimpleColumnParam& prm) const override;
SimpleValue toSimpleValue(const SessionParam& sp, const SystemCatalog::TypeAttributesStd& attr,
const char* str, round_style_t& rf) const override
SimpleValue toSimpleValue(const SessionParam& /*sp*/, const SystemCatalog::TypeAttributesStd& /*attr*/,
const char* /*str*/, round_style_t& /*rf*/) const override
{
return {}; // QQ: real types were not handled in IDB_format()
}
std::string format(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& attr) const override
std::string format(const SimpleValue& /*v*/, const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return "0"; // QQ
}
@ -2163,25 +2164,25 @@ class TypeHandlerSLongDouble : public TypeHandlerReal
return field->ColWriteBatchSLongDouble(buf, nullVal, writer);
}
int storeValueToField(rowgroup::Row& row, int pos, StoreField* f) const override;
std::string formatPartitionInfo(const SystemCatalog::TypeAttributesStd& attr,
const MinMaxInfo& i) const override
std::string formatPartitionInfo(const SystemCatalog::TypeAttributesStd& /*attr*/,
const MinMaxInfo& /*i*/) const override
{
idbassert(0);
return "Error";
}
boost::any getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const override
boost::any getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
// QQ: DDLPackageProcessor::getNullValueForType() did not handle LONGDOUBLE
return {};
}
boost::any convertFromString(const SystemCatalog::TypeAttributesStd& colType,
const ConvertFromStringParam& prm, const std::string& str,
bool& pushWarning) const override
boost::any convertFromString(const SystemCatalog::TypeAttributesStd& /*colType*/,
const ConvertFromStringParam& /*prm*/, const std::string& /*str*/,
bool& /*pushWarning*/) const override
{
throw logging::QueryDataExcept("convertColumnData: unknown column data type.", logging::dataTypeErr);
return {};
}
const uint8_t* getEmptyValueForType(const SystemCatalog::TypeAttributesStd& attr) const override
const uint8_t* getEmptyValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
idbassert(0);
return nullptr;
@ -2328,7 +2329,7 @@ class TypeHandlerBlob : public TypeHandlerStr
{
return storeValueToFieldBlobText(row, pos, f);
}
std::string format(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& attr) const override
std::string format(const SimpleValue& /*v*/, const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return "0"; // QQ
}
@ -2354,7 +2355,7 @@ class TypeHandlerText : public TypeHandlerStr
{
return storeValueToFieldBlobText(row, pos, f);
}
std::string format(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& attr) const override
std::string format(const SimpleValue& /*v*/, const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return "0"; // QQ
}
@ -2374,22 +2375,22 @@ class TypeHandlerClob : public TypeHandlerStr
{
return SystemCatalog::CLOB;
}
size_t ColWriteBatch(WriteBatchField* field, const unsigned char* buf, bool nullVal,
ColBatchWriter& writer) const override
size_t ColWriteBatch(WriteBatchField* /*field*/, const unsigned char* /*buf*/, bool /*nullVal*/,
ColBatchWriter& /*writer*/) const override
{
idbassert(0); // QQ
return 0;
}
int storeValueToField(rowgroup::Row& row, int pos, StoreField* f) const override
int storeValueToField(rowgroup::Row& /*row*/, int /*pos*/, StoreField* /*f*/) const override
{
idbassert(0); // QQ
return 1;
}
std::string format(const SimpleValue& v, const SystemCatalog::TypeAttributesStd& attr) const override
std::string format(const SimpleValue& /*v*/, const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return "0"; // QQ
}
boost::any getNullValueForType(const SystemCatalog::TypeAttributesStd& attr) const override
boost::any getNullValueForType(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return {}; // QQ
}
@ -2422,7 +2423,7 @@ class TypeHandlerDate : public TypeHandlerTemporal
{
return SystemCatalog::DATE;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
@ -2448,7 +2449,7 @@ class TypeHandlerDatetime : public TypeHandlerTemporal
{
return SystemCatalog::DATETIME;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
@ -2474,7 +2475,7 @@ class TypeHandlerTime : public TypeHandlerTemporal
{
return SystemCatalog::TIME;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}
@ -2500,7 +2501,7 @@ class TypeHandlerTimestamp : public TypeHandlerTemporal
{
return SystemCatalog::TIMESTAMP;
}
bool CP_type(const SystemCatalog::TypeAttributesStd& attr) const override
bool CP_type(const SystemCatalog::TypeAttributesStd& /*attr*/) const override
{
return true;
}

View File

@ -77,7 +77,7 @@ void addSubtractExecute(const Decimal& l, const Decimal& r, Decimal& result, Bin
template <typename OpOverflowCheck, typename MultiplicationOverflowCheck>
void divisionExecute(const Decimal& l, const Decimal& r, Decimal& result, OpOverflowCheck opOverflowCheck,
MultiplicationOverflowCheck mulOverflowCheck)
MultiplicationOverflowCheck /*mulOverflowCheck*/)
{
int128_t lValue = Decimal::isWideDecimalTypeByPrecision(l.precision) ? l.s128Value : l.value;
int128_t rValue = Decimal::isWideDecimalTypeByPrecision(r.precision) ? r.s128Value : r.value;
@ -109,7 +109,7 @@ void divisionExecute(const Decimal& l, const Decimal& r, Decimal& result, OpOver
template <typename OpOverflowCheck, typename MultiplicationOverflowCheck>
void multiplicationExecute(const Decimal& l, const Decimal& r, Decimal& result,
OpOverflowCheck opOverflowCheck, MultiplicationOverflowCheck mulOverflowCheck)
OpOverflowCheck opOverflowCheck, MultiplicationOverflowCheck /*mulOverflowCheck*/)
{
int128_t lValue = Decimal::isWideDecimalTypeByPrecision(l.precision) ? l.s128Value : l.value;
int128_t rValue = Decimal::isWideDecimalTypeByPrecision(r.precision) ? r.s128Value : r.value;

View File

@ -1008,7 +1008,7 @@ struct SubtractionOverflowCheck
*/
struct NoOverflowCheck
{
void operator()(const int128_t& x, const int128_t& y)
void operator()(const int128_t& /*x*/, const int128_t& /*y*/)
{
}
};