You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-641 atoi128 now correctly processes decimal point and - signs.
There are multiple overloaded version of the low level DML write methods to push down CSC column type. WE needs the type to convert values correctly. Replaced WE_INT128 with CSC data type that is more informative. Removed commented and obsolete code. Replaced switch-case blocks with oneliners.
This commit is contained in:
@ -639,7 +639,8 @@ void Convertor::convertColType(ColStruct* curStruct)
|
||||
|
||||
default:
|
||||
// WIP replace with BINARY
|
||||
*internalType = WriteEngine::WR_INT128;
|
||||
//*internalType = WriteEngine::WR_INT128;
|
||||
*internalType = WriteEngine::WR_BINARY;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -111,9 +111,9 @@ enum ColType /** @brief Column type enumeration*/
|
||||
WR_TEXT = 17, /** @brief TEXT */
|
||||
WR_MEDINT = 18, /** @brief Medium Int */
|
||||
WR_UMEDINT = 19, /** @brief Unsigned Medium Int */
|
||||
WR_BINARY = 20, /** @brief BINARY */
|
||||
// WIP We might be good using WR_BINARY
|
||||
WR_INT128 = 21 /** @brief __int128 */
|
||||
WR_BINARY = 20 /** @brief BINARY */
|
||||
// WIP
|
||||
//WR_INT128
|
||||
};
|
||||
|
||||
// Describes relation of field to column for a bulk load
|
||||
@ -302,6 +302,7 @@ struct ColStruct /** @brief Column Interface Struct*/
|
||||
typedef std::vector<ColStruct> ColStructList; /** @brief column struct list */
|
||||
typedef std::vector<ColTupleList> ColValueList; /** @brief column value list */
|
||||
typedef std::vector<RID> RIDList; /** @brief RID list */
|
||||
typedef std::vector<execplan::CalpontSystemCatalog::ColType> CSCTypesList; /** @brief CSC column types list */
|
||||
|
||||
typedef std::vector<std::string> dictStr;
|
||||
typedef std::vector<dictStr> DictStrList;
|
||||
|
Reference in New Issue
Block a user