1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-18 21:44:02 +03:00
Gagan Goel 10f1a7abbc MCOL-5480 LOAD DATA INFILE incorrectly loads values for MEDIUMINT datatype.
Internal memory representation of MEDIUMINT datatype uses 24 bits. This is
true for both MariaDB server as well as ColumnStore. MCS plugin code uses
TypeHandlerSInt24 and TypeHandlerUInt24 classes to respectively convert the
binary representation of the signed and unsigned MEDIUMINT values passed by
the server to the plugin. The plugin then outputs the text representation
of these values into an open file descriptor which is piped to cpimport
for the final load into the MCS db files.

The TypeHandlerXInt24 classes were earlier incorrectly using
WriteBatchField::ColWriteBatchXInt32() functions which operate on a 4 byte
buffer. This resulted in incorrect parsing of MEDIUMINT values. As a fix,
we implement WriteBatchField::ColWriteBatchXInt24() functions which
correctly handle the 24 bit input buffer used for MEDIUMINT datatype.
2023-05-19 18:30:52 -04:00
..
2022-01-21 16:43:49 +00:00
2022-02-17 13:08:58 +03:00
2023-03-02 15:59:42 +00:00
2022-01-21 16:43:49 +00:00
2022-02-17 13:08:58 +03:00
2022-02-17 13:08:58 +03:00
2022-02-17 13:08:58 +03:00
2022-02-17 13:08:58 +03:00
2022-02-17 13:08:58 +03:00
2022-01-21 16:43:49 +00:00
2022-01-21 16:43:49 +00:00