amorynan commented on code in PR #15966: URL: https://github.com/apache/doris/pull/15966#discussion_r1089861009
########## be/src/vec/sink/vmysql_result_writer.cpp: ########## @@ -186,6 +188,58 @@ Status VMysqlResultWriter::_add_one_column(const ColumnPtr& column_ptr, _buffer.close_dynamic_mode(); result->result_batch.rows[i].append(_buffer.buf(), _buffer.length()); } + } else if constexpr (type == TYPE_MAP) { + auto& column_map = assert_cast<const ColumnMap&>(*column); + auto& offsets = column_map.get_offsets(); + auto& column_key_array = assert_cast<const ColumnArray&>(column_map.get_keys()); + auto& column_val_array = assert_cast<const ColumnArray&>(column_map.get_values()); + auto& map_type = assert_cast<const DataTypeMap&>(*nested_type_ptr); + auto& key_nested_type_ptr = map_type.get_key_type(); + auto& val_nested_type_ptr = map_type.get_value_type(); + for (ssize_t i = 0; i < row_size; ++i) { + if (0 != buf_ret) { + return Status::InternalError("pack mysql buffer failed."); + } + _buffer.reset(); + + _buffer.open_dynamic_mode(); + buf_ret = _buffer.push_string("{", 1); Review Comment: Yes . I will -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org