This is an automated email from the ASF dual-hosted git repository.

jakevin 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 cc0fa5fef6 [fix](array-type) fix the be core dump when import 
array<largeint> (#13821)
cc0fa5fef6 is described below

commit cc0fa5fef62ab9a968a1e1497afd4a3b27ad12d7
Author: carlvinhust2012 <[email protected]>
AuthorDate: Mon Oct 31 22:08:55 2022 +0800

    [fix](array-type) fix the be core dump when import array<largeint> (#13821)
    
    - this pr is used to fix the be core dump when import array.
    - before the change, we import array by rapidjson string will core dump 
under the non-vectorized scenario.
    - after the change, we can import array by rapidjson string successfully.
---
 be/src/util/array_parser.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/util/array_parser.h b/be/src/util/array_parser.h
index 29d90ff1e6..6600f6ea9c 100644
--- a/be/src/util/array_parser.h
+++ b/be/src/util/array_parser.h
@@ -184,7 +184,7 @@ private:
                 stream << view;
                 stream >> value;
             }
-            *val = 
reinterpret_cast<AnyVal*>(context->allocate(sizeof(LargeIntVal)));
+            *val = reinterpret_cast<AnyVal*>(context->aligned_allocate(16, 
sizeof(LargeIntVal)));
             new (*val) LargeIntVal(value);
             break;
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to