linrrzqqq opened a new pull request, #62759:
URL: https://github.com/apache/doris/pull/62759
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #58002
Problem Summary:
`arrow::Decimal256Array::Value()` returns raw bytes (`const uint8_t*`), we
previously reinterpret_cast it to `Decimal256*` which is a misaligned access .
```text
../src/core/data_type_serde/data_type_decimal_serde.cpp:376:21: runtime
error: reference binding to misaligned address 0x1338f3345b12 for type 'const
FieldType' (aka 'const Decimal<integer<256, int>>'), which requires 8 byte
alignment
0x1338f3345b12: note: pointer points here
00 c2 3e 20 00 00 10 63 2d 5e c7 6b 05 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
^
#0 0x56203d1eb751 in
doris::DataTypeDecimalSerDe<(doris::PrimitiveType)35>::read_column_from_arrow(doris::IColumn&,
arrow::Array const*, long, long, cctz::time_zone const&) const
be/build_ASAN/../src/core/data_type_serde/data_type_decimal_serde.cpp:375:25
#1 0x56203d9c6d6b in
doris::DataTypeNullableSerDe::read_column_from_arrow(doris::IColumn&,
arrow::Array const*, long, long, cctz::time_zone const&) const
be/build_ASAN/../src/core/data_type_serde/data_type_nullable_serde.cpp:350:26
#2 0x562055dd83b5 in
doris::FromRecordBatchToBlockConverter::convert(doris::Block*)
be/build_ASAN/../src/format/arrow/arrow_block_convertor.cpp:131:9
#3 0x562055dd9229 in
doris::convert_from_arrow_batch(std::shared_ptr<arrow::RecordBatch> const&,
std::vector<std::shared_ptr<doris::IDataType const>,
```
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]