You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2022/07/06 02:47:41 UTC
[doris] branch master updated: [Fix] select nested type of string within type array should be wrapped with '' in vectorized path (#10498)
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 <15...@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-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org