eldenmoon commented on code in PR #10498:
URL: https://github.com/apache/doris/pull/10498#discussion_r909582692


##########
be/src/vec/sink/mysql_result_writer.cpp:
##########
@@ -136,7 +136,13 @@ Status VMysqlResultWriter::_add_one_column(const 
ColumnPtr& column_ptr,
                 if (data->is_null_at(j)) {
                     buf_ret = _buffer.push_string("NULL", strlen("NULL"));
                 } else {
-                    buf_ret = _add_one_cell(data, j, nested_type_ptr, _buffer);
+                    if 
(WhichDataType(remove_nullable(nested_type_ptr)).is_string()) {
+                        buf_ret = _buffer.push_string("'", 1);
+                        buf_ret = _add_one_cell(data, j, nested_type_ptr, 
_buffer);

Review Comment:
   ```
   mysql> set enable_vectorized_engine = true;
   mysql> select k3 from test_array_string order by k2 limit 1;
   +----------------------------------------------+
   | k3                                           |
   +----------------------------------------------+
   | ['cdsdasd', 'xxxx', '3', '4', '5', NULL] |
   +----------------------------------------------+
   ```
   here is an example of nested data is null



-- 
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

Reply via email to