@@ -19,6 +19,7 @@ namespace {
1919
2020 bool const strings_as_strings = false ;
2121 bool const strings_as_dictionaries = true ;
22+ bool const truncate_timestamps = true ;
2223
2324 bool const plain_integers = false ;
2425 bool const compressed_integers = true ;
@@ -117,7 +118,7 @@ class ArrowResultSetTest : public ::testing::Test {
117118 auto schema = std::make_shared<arrow::Schema>(expected_fields);
118119 std::shared_ptr<arrow::Table> expected_table = arrow::Table::Make (schema, expected_arrays);
119120
120- turbodbc_arrow::arrow_result_set ars (rs, strings_as_dictionary, adaptive_integers);
121+ turbodbc_arrow::arrow_result_set ars (rs, strings_as_dictionary, adaptive_integers, truncate_timestamps );
121122 std::shared_ptr<arrow::Table> table;
122123 ASSERT_OK (ars.fetch_all_native (&table, false ));
123124 ASSERT_TRUE (expected_table->Equals (*table));
@@ -139,7 +140,7 @@ TEST_F(ArrowResultSetTest, SimpleSchemaConversion)
139140 " int_column" , turbodbc::type_code::integer, size_unimportant, true }};
140141 EXPECT_CALL (rs, do_get_column_info ()).WillRepeatedly (testing::Return (expected));
141142
142- turbodbc_arrow::arrow_result_set ars (rs, strings_as_strings, plain_integers);
143+ turbodbc_arrow::arrow_result_set ars (rs, strings_as_strings, plain_integers, truncate_timestamps );
143144 auto schema = ars.schema ();
144145 ASSERT_EQ (schema->num_fields (), 1 );
145146 auto field = schema->field (0 );
@@ -179,7 +180,7 @@ TEST_F(ArrowResultSetTest, AllTypesSchemaConversion)
179180 std::make_shared<arrow::Field>(" nonnull_int_column" , arrow::int64 (), false )
180181 };
181182
182- turbodbc_arrow::arrow_result_set ars (rs, strings_as_strings, plain_integers);
183+ turbodbc_arrow::arrow_result_set ars (rs, strings_as_strings, plain_integers, truncate_timestamps );
183184 auto schema = ars.schema ();
184185
185186 ASSERT_EQ (schema->num_fields (), 12 );
@@ -213,7 +214,7 @@ TEST_F(ArrowResultSetTest, SingleBatchSingleColumnResultSetConversion)
213214 EXPECT_CALL (rs, do_get_buffers ()).WillOnce (testing::Return (expected_buffers));
214215 EXPECT_CALL (rs, do_fetch_next_batch ()).WillOnce (testing::Return (OUTPUT_SIZE)).WillOnce (testing::Return (0 ));
215216
216- turbodbc_arrow::arrow_result_set ars (rs, strings_as_strings, plain_integers);
217+ turbodbc_arrow::arrow_result_set ars (rs, strings_as_strings, plain_integers, truncate_timestamps );
217218 std::shared_ptr<arrow::Table> table;
218219 ASSERT_OK (ars.fetch_all_native (&table, false ));
219220 ASSERT_TRUE (expected_table->Equals (*table));
0 commit comments