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

Function TEST

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

Source from the content-addressed store, hash-verified

1905}
1906
1907TEST(TestArrowReadWrite, DateTimeTypes) {
1908 std::shared_ptr<Table> table, result, expected;
1909
1910 // Parquet 2.6 nanoseconds are preserved
1911 MakeDateTimeTypesTable(&table);
1912 ASSERT_NO_FATAL_FAILURE(
1913 DoSimpleRoundtrip(table, false /* use_threads */, table->num_rows(), {}, &result));
1914
1915 MakeDateTimeTypesTable(&expected, false);
1916 ASSERT_NO_FATAL_FAILURE(::arrow::AssertSchemaEqual(*expected->schema(),
1917 *result->schema(),
1918 /*check_metadata=*/false));
1919 ASSERT_NO_FATAL_FAILURE(::arrow::AssertTablesEqual(*expected, *result));
1920
1921 // Parquet 2.4 nanoseconds are converted to microseconds
1922 auto parquet_version_2_4_properties = ::parquet::WriterProperties::Builder()
1923 .version(ParquetVersion::PARQUET_2_4)
1924 ->build();
1925 MakeDateTimeTypesTable(&expected, true);
1926 ASSERT_NO_FATAL_FAILURE(
1927 CheckConfiguredRoundtrip(table, expected, parquet_version_2_4_properties));
1928}
1929
1930TEST(TestArrowReadWrite, UseDeprecatedInt96) {
1931 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