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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user