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 5565a42f925 [beut](fix) improve be ut (#61554)
5565a42f925 is described below
commit 5565a42f925c3b8c101301330f7095cc578a93b1
Author: TengJianPing <[email protected]>
AuthorDate: Mon Mar 23 11:38:21 2026 +0800
[beut](fix) improve be ut (#61554)
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### 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 -->
---
be/test/core/data_type/common_data_type_serder_test.h | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/be/test/core/data_type/common_data_type_serder_test.h
b/be/test/core/data_type/common_data_type_serder_test.h
index beccb5b53eb..d968cc1213e 100644
--- a/be/test/core/data_type/common_data_type_serder_test.h
+++ b/be/test/core/data_type/common_data_type_serder_test.h
@@ -112,6 +112,11 @@ public:
}
}
}
+ } else {
+ auto err_code = errno;
+ auto* err_msg = std::strerror(err_code);
+ throw doris::Exception(err_code, "can not open the file: {} ,
error: {} ",
+ column_data_file, err_msg);
}
// Step 2: Validate the data in `column` matches `expected_data`
@@ -391,7 +396,9 @@ public:
column_with_type_and_name.type, rows, "UTC");
// do check data
std::cout << "arrow_column_to_doris_column done, column data: "
- << column_with_type_and_name.to_string(0).substr(0, 256)
+ << (column_with_type_and_name.column->empty()
+ ? "empty"
+ :
column_with_type_and_name.to_string(0).substr(0, 256))
<< ", column size: " <<
column_with_type_and_name.column->size() << std::endl;
EXPECT_EQ(Status::OK(), ret) << "convert arrow to block failed" <<
ret.to_string();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]