This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 006283c036 [Fix] select nested type of string within type array should be wrapped with '' in vectorized path (#10498) 006283c036 is described below commit 006283c03675ff938a8301f6c529e803fd6c68b1 Author: lihangyu <15605149...@163.com> AuthorDate: Wed Jul 6 10:47:36 2022 +0800 [Fix] select nested type of string within type array should be wrapped with '' in vectorized path (#10498) --- be/src/vec/sink/mysql_result_writer.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/be/src/vec/sink/mysql_result_writer.cpp b/be/src/vec/sink/mysql_result_writer.cpp index e9c3506dd6..b725ac26e9 100644 --- a/be/src/vec/sink/mysql_result_writer.cpp +++ b/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); + buf_ret = _buffer.push_string("'", 1); + } else { + buf_ret = _add_one_cell(data, j, nested_type_ptr, _buffer); + } } begin = false; } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org