Skip to content

Commit 8cd50be

Browse files
committed
test: add test case for timestamp
1 parent 552b4bf commit 8cd50be

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/paimon/common/utils/arrow/arrow_utils_test.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,12 @@ std::vector<NormalizeCase> NormalizeCases() {
459459
{arrow::int64(), "[0, 1, null, 3, 4, 5, null, 7, 8, 9]", {{{}, 1}}},
460460
{arrow::float64(), "[0.5, 1.5, null, 3.5, 4.5, 5.5, null, 7.5, 8.5, 9.5]", {{{}, 1}}},
461461
{arrow::date32(), "[0, 1, null, 3, 4, 5, null, 7, 8, 9]", {{{}, 1}}},
462+
{arrow::timestamp(arrow::TimeUnit::MICRO),
463+
"[0, 1, null, 3, 4, 5, null, 7, 8, 9]",
464+
{{{}, 1}}},
465+
{arrow::timestamp(arrow::TimeUnit::MILLI, "UTC"),
466+
"[0, 1, null, 3, 4, 5, null, 7, 8, 9]",
467+
{{{}, 1}}},
462468
{arrow::decimal128(10, 2),
463469
R"(["1.23", null, "3.45", "6.78", "0.01", null, "9.99", "8.88", "7.77", "6.66"])",
464470
{{{}, 1}}},

0 commit comments

Comments
 (0)