This is an automated email from the ASF dual-hosted git repository.
dataroaring 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 e991f607d5 [fix](string-column) fix unescape length error (#22411)
e991f607d5 is described below
commit e991f607d50ccd737327193a8e88decaaf6f86d8
Author: Siyang Tang <[email protected]>
AuthorDate: Wed Aug 2 12:18:05 2023 +0800
[fix](string-column) fix unescape length error (#22411)
---
be/src/exec/text_converter.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/be/src/exec/text_converter.cpp b/be/src/exec/text_converter.cpp
index 609338d6cd..90438dc05c 100644
--- a/be/src/exec/text_converter.cpp
+++ b/be/src/exec/text_converter.cpp
@@ -488,6 +488,7 @@ bool TextConverter::write_vec_column(const SlotDescriptor*
slot_desc,
}
void TextConverter::unescape_string_on_spot(const char* src, size_t* len) {
+ const char* start = src;
char* dest_ptr = const_cast<char*>(src);
const char* end = src + *len;
bool escape_next_char = false;
@@ -506,7 +507,7 @@ void TextConverter::unescape_string_on_spot(const char*
src, size_t* len) {
}
}
- *len = dest_ptr - src;
+ *len = dest_ptr - start;
}
} // namespace doris
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]