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

Function TEST

cpp/src/parquet/reader_test.cc:605–619  ·  view source on GitHub ↗

Tests that read_dense_for_nullable is passed down to the record reader. The functionality of read_dense_for_nullable is tested elsewhere.

Source from the content-addressed store, hash-verified

603// reader. The functionality of read_dense_for_nullable is tested
604// elsewhere.
605TEST(TestFileReader, RecordReaderReadDenseForNullable) {
606 // We test the default which is false, and also test enabling and disabling
607 // read_dense_for_nullable.
608 std::vector<ReaderProperties> reader_properties(3);
609 reader_properties[1].enable_read_dense_for_nullable();
610 reader_properties[2].disable_read_dense_for_nullable();
611 for (const auto& reader_props : reader_properties) {
612 std::unique_ptr<ParquetFileReader> file_reader = ParquetFileReader::OpenFile(
613 alltypes_plain(), /* memory_map = */ false, reader_props);
614 std::shared_ptr<RowGroupReader> group = file_reader->RowGroup(0);
615 std::shared_ptr<internal::RecordReader> col_record_reader = group->RecordReader(0);
616 ASSERT_EQ(reader_props.read_dense_for_nullable(),
617 col_record_reader->read_dense_for_nullable());
618 }
619}
620
621// Tests getting a record reader from a row group reader.
622TEST(TestFileReader, GetRecordReader) {

Callers

nothing calls this directly

Calls 15

OpenFileFunction · 0.85
alltypes_plainFunction · 0.85
StringClass · 0.85
CheckJsonValidFunction · 0.85
to_stringFunction · 0.85
default_memory_poolFunction · 0.85
OpenBufferFunction · 0.85
OpenBufferAsyncFunction · 0.85

Tested by

no test coverage detected