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 c488e67bd3 [Bug](vectorized)Fix reading date and datetime types
conversion error (#16252)
c488e67bd3 is described below
commit c488e67bd379c4e4d2cc27bd75281b23c836ffe4
Author: wudi <[email protected]>
AuthorDate: Sat Feb 4 23:05:00 2023 +0800
[Bug](vectorized)Fix reading date and datetime types conversion error
(#16252)
from pr #15612, Type conversion error when reading date and datetime types
---------
Co-authored-by: wudi <>
---
be/src/util/arrow/block_convertor.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/be/src/util/arrow/block_convertor.cpp
b/be/src/util/arrow/block_convertor.cpp
index 273fd4a676..31211f44a3 100644
--- a/be/src/util/arrow/block_convertor.cpp
+++ b/be/src/util/arrow/block_convertor.cpp
@@ -107,7 +107,8 @@ public:
case vectorized::TypeIndex::Date:
case vectorized::TypeIndex::DateTime: {
char buf[64];
- const DateTimeValue* time_val = (const
DateTimeValue*)(data_ref.data);
+ const vectorized::VecDateTimeValue* time_val =
+ (const vectorized::VecDateTimeValue*)(data_ref.data);
int len = time_val->to_buffer(buf);
ARROW_RETURN_NOT_OK(builder.Append(buf, len));
break;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]