zclllyybb commented on code in PR #57070:
URL: https://github.com/apache/doris/pull/57070#discussion_r2443820448
##########
be/test/vec/columns/column_varbinary_test.cpp:
##########
@@ -454,4 +456,75 @@ TEST_F(ColumnVarbinaryTest,
AllocatedBytesAndHasEnoughCapacity) {
ASSERT_FALSE(dest->has_enough_capacity(*src_big));
}
+TEST_F(ColumnVarbinaryTest, InsertRangeFromOutOfBoundsThrows) {
+ auto src = ColumnVarbinary::create();
+ std::vector<std::string> vals = {make_bytes(2, 0x10), make_bytes(3, 0x20)};
+ for (auto& v : vals) {
+ src->insert_data(v.data(), v.size());
+ }
+
+ auto dst = ColumnVarbinary::create();
+ // start+length 超界应抛出 doris::Exception
Review Comment:
should use English
--
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]