This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
new 05c733a5ad [fix](ut) Fix TestDeltaWriter fail in branch-1.2 (#16421)
05c733a5ad is described below
commit 05c733a5ad07608930085acb40f84c77cfa6774c
Author: zhannngchen <[email protected]>
AuthorDate: Mon Feb 6 20:44:05 2023 +0800
[fix](ut) Fix TestDeltaWriter fail in branch-1.2 (#16421)
---
be/test/olap/delta_writer_test.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/be/test/olap/delta_writer_test.cpp
b/be/test/olap/delta_writer_test.cpp
index b3aa765c2f..7093dacfb7 100644
--- a/be/test/olap/delta_writer_test.cpp
+++ b/be/test/olap/delta_writer_test.cpp
@@ -30,6 +30,7 @@
#include "olap/field.h"
#include "olap/options.h"
#include "olap/rowset/beta_rowset.h"
+#include "olap/schema.h"
#include "olap/storage_engine.h"
#include "olap/tablet.h"
#include "olap/tablet_meta_manager.h"
@@ -713,9 +714,9 @@ TEST_F(TestDeltaWriter, sequence_col) {
memset(tuple, 0, tuple_desc->byte_size());
*(int8_t*)(tuple->get_slot(slots[0]->tuple_offset())) = 123;
*(int16_t*)(tuple->get_slot(slots[1]->tuple_offset())) = 456;
- *(int32_t*)(tuple->get_slot(slots[2]->tuple_offset())) = 1;
- ((DateTimeValue*)(tuple->get_slot(slots[3]->tuple_offset())))
+ ((DateTimeValue*)(tuple->get_slot(slots[2]->tuple_offset())))
->from_date_str("2020-07-16 19:39:43", 19);
+ *(int32_t*)(tuple->get_slot(slots[4]->tuple_offset())) = 1;
res = delta_writer->write(tuple);
EXPECT_EQ(Status::OK(), res);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]