Skip to content

Commit a1a9b9d

Browse files
committed
fix
1 parent f1366dc commit a1a9b9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/paimon/format/orc/orc_input_output_stream_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ TEST(OrcInputOutputStreamTest, TestSimple) {
9797
std::unique_ptr<::orc::ColumnVectorBatch> batch = writer->createRowBatch(batch_size);
9898
auto* struct_batch = dynamic_cast<::orc::StructVectorBatch*>(batch.get());
9999
ASSERT_TRUE(struct_batch);
100-
auto* int_batch = static_cast<::orc::IntVectorBatch*>(struct_batch->fields[0]);
100+
auto* int_batch = dynamic_cast<::orc::LongVectorBatch*>(struct_batch->fields[0]);
101101
ASSERT_TRUE(int_batch);
102102
auto* double_batch = dynamic_cast<::orc::DoubleVectorBatch*>(struct_batch->fields[1]);
103103
ASSERT_TRUE(double_batch);
@@ -159,7 +159,7 @@ TEST(OrcInputOutputStreamTest, TestSimple) {
159159

160160
struct_batch = dynamic_cast<::orc::StructVectorBatch*>(batch.get());
161161
ASSERT_TRUE(struct_batch);
162-
int_batch = static_cast<::orc::IntVectorBatch*>(struct_batch->fields[0]);
162+
int_batch = static_cast<::orc::LongVectorBatch*>(struct_batch->fields[0]);
163163
ASSERT_TRUE(int_batch);
164164
double_batch = dynamic_cast<::orc::DoubleVectorBatch*>(struct_batch->fields[1]);
165165
ASSERT_TRUE(double_batch);

0 commit comments

Comments
 (0)