Add long text type STRING, with a maximum length of 2GB. Usage is similar to varchar, and there is no guarantee for the performance of storing extremely long data (#6391)

This commit is contained in:
Zhengguo Yang
2021-08-18 09:05:40 +08:00
committed by GitHub
parent 2f90aaab8e
commit 8738ce380b
106 changed files with 1353 additions and 433 deletions

View File

@ -53,7 +53,7 @@ void VectorizedRowBatch::dump_to_row_block(RowBlock* row_block) {
row_block->_mem_buf + row_block->_field_offset_in_memory[column_id];
const TabletColumn& column = _schema->column(column_id);
size_t field_size = 0;
if (column.type() == OLAP_FIELD_TYPE_CHAR || column.type() == OLAP_FIELD_TYPE_VARCHAR ||
if (column.type() == OLAP_FIELD_TYPE_CHAR || column.type() == OLAP_FIELD_TYPE_VARCHAR || column.type() == OLAP_FIELD_TYPE_STRING ||
column.type() == OLAP_FIELD_TYPE_HLL || column.type() == OLAP_FIELD_TYPE_OBJECT) {
field_size = sizeof(Slice);
} else {
@ -96,7 +96,7 @@ void VectorizedRowBatch::dump_to_row_block(RowBlock* row_block) {
const TabletColumn& column = _schema->column(column_id);
size_t field_size = 0;
if (column.type() == OLAP_FIELD_TYPE_CHAR || column.type() == OLAP_FIELD_TYPE_VARCHAR ||
if (column.type() == OLAP_FIELD_TYPE_CHAR || column.type() == OLAP_FIELD_TYPE_VARCHAR || column.type() == OLAP_FIELD_TYPE_STRING||
column.type() == OLAP_FIELD_TYPE_HLL || column.type() == OLAP_FIELD_TYPE_OBJECT) {
field_size = sizeof(Slice);
} else {