MCPcopy Create free account
hub / github.com/apache/arrow / TEST

Function TEST

cpp/src/parquet/arrow/arrow_reader_writer_test.cc:1888–1909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1886}
1887
1888TEST(TestArrowReadWrite, DateTimeTypes) {
1889 std::shared_ptr<Table> table, result, expected;
1890
1891 // Parquet 2.6 nanoseconds are preserved
1892 MakeDateTimeTypesTable(&table);
1893 ASSERT_NO_FATAL_FAILURE(
1894 DoSimpleRoundtrip(table, false /* use_threads */, table->num_rows(), {}, &result));
1895
1896 MakeDateTimeTypesTable(&expected, false);
1897 ASSERT_NO_FATAL_FAILURE(::arrow::AssertSchemaEqual(*expected->schema(),
1898 *result->schema(),
1899 /*check_metadata=*/false));
1900 ASSERT_NO_FATAL_FAILURE(::arrow::AssertTablesEqual(*expected, *result));
1901
1902 // Parquet 2.4 nanoseconds are converted to microseconds
1903 auto parquet_version_2_4_properties = ::parquet::WriterProperties::Builder()
1904 .version(ParquetVersion::PARQUET_2_4)
1905 ->build();
1906 MakeDateTimeTypesTable(&expected, true);
1907 ASSERT_NO_FATAL_FAILURE(
1908 CheckConfiguredRoundtrip(table, expected, parquet_version_2_4_properties));
1909}
1910
1911TEST(TestArrowReadWrite, UseDeprecatedInt96) {
1912 using ::arrow::ArrayFromVector;

Callers

nothing calls this directly

Calls 15

MakeDateTimeTypesTableFunction · 0.85
DoSimpleRoundtripFunction · 0.85
AssertTablesEqualFunction · 0.85
CheckConfiguredRoundtripFunction · 0.85
ArrayFromJSONFunction · 0.85
DownsampleInt96RoundTripFunction · 0.85
default_memory_poolFunction · 0.85
CreateOutputStreamFunction · 0.85
ParquetVersionToStringFunction · 0.85
MakeDoubleTableFunction · 0.85
ConcatenateTablesFunction · 0.85

Tested by

no test coverage detected