Skip to content

Commit 90c36c4

Browse files
Adding missing len=0 and len<0 tests for uniform test coverage across data types
1 parent 37d8e6d commit 90c36c4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cpp/src/gandiva/gdv_function_stubs_test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ TEST(TestGdvFnStubs, TestCastVARCHARFromMilliseconds) {
390390
EXPECT_EQ(std::string(out_str, out_len), "2008");
391391
EXPECT_FALSE(ctx.has_error());
392392

393+
ts = StringToTimestamp("2021-04-23 10:20:33");
393394
out_str = gdv_fn_castVARCHAR_date64_int64(ctx_ptr, ts, 0, &out_len);
394395
EXPECT_EQ(std::string(out_str, out_len), "");
395396
EXPECT_FALSE(ctx.has_error());

0 commit comments

Comments
 (0)