@@ -60,13 +60,13 @@ class TestWriteRecordBatch : public ::testing::TestWithParam<MakeRecordBatch*>,
6060 std::shared_ptr<RecordBatch>* batch_result) {
6161 std::string path = " test-write-row-batch" ;
6262 io::MemoryMapFixture::InitMemoryMap (memory_map_size, path, &mmap_);
63- int64_t header_location ;
63+ int64_t header_offset ;
6464
65- RETURN_NOT_OK (WriteRecordBatch (
66- batch.columns (), batch.num_rows (), mmap_.get (), &header_location ));
65+ RETURN_NOT_OK (
66+ WriteRecordBatch ( batch.columns (), batch.num_rows (), mmap_.get (), &header_offset ));
6767
6868 std::shared_ptr<RecordBatchReader> reader;
69- RETURN_NOT_OK (RecordBatchReader::Open (mmap_.get (), header_location , &reader));
69+ RETURN_NOT_OK (RecordBatchReader::Open (mmap_.get (), header_offset , &reader));
7070
7171 RETURN_NOT_OK (reader->GetRecordBatch (batch.schema (), batch_result));
7272 return Status::OK ();
@@ -281,10 +281,10 @@ INSTANTIATE_TEST_CASE_P(RoundTripTests, TestWriteRecordBatch,
281281
282282void TestGetRecordBatchSize (std::shared_ptr<RecordBatch> batch) {
283283 ipc::MockOutputStream mock;
284- int64_t mock_header_location = -1 ;
284+ int64_t mock_header_offset = -1 ;
285285 int64_t size = -1 ;
286- ASSERT_OK (WriteRecordBatch (
287- batch->columns (), batch->num_rows (), &mock, &mock_header_location ));
286+ ASSERT_OK (
287+ WriteRecordBatch ( batch->columns (), batch->num_rows (), &mock, &mock_header_offset ));
288288 ASSERT_OK (GetRecordBatchSize (batch.get (), &size));
289289 ASSERT_EQ (mock.GetExtentBytesWritten (), size);
290290}
@@ -335,8 +335,8 @@ class RecursionLimits : public ::testing::Test, public io::MemoryMapFixture {
335335 std::string path = " test-write-past-max-recursion" ;
336336 const int memory_map_size = 1 << 16 ;
337337 io::MemoryMapFixture::InitMemoryMap (memory_map_size, path, &mmap_);
338- int64_t header_location ;
339- int64_t * header_out_param = header_out == nullptr ? &header_location : header_out;
338+ int64_t header_offset ;
339+ int64_t * header_out_param = header_out == nullptr ? &header_offset : header_out;
340340 if (override_level) {
341341 return WriteRecordBatch (batch->columns (), batch->num_rows (), mmap_.get (),
342342 header_out_param, recursion_level + 1 );
@@ -356,12 +356,12 @@ TEST_F(RecursionLimits, WriteLimit) {
356356}
357357
358358TEST_F (RecursionLimits, ReadLimit) {
359- int64_t header_location = -1 ;
359+ int64_t header_offset = -1 ;
360360 std::shared_ptr<Schema> schema;
361- ASSERT_OK (WriteToMmap (64 , true , &header_location , &schema));
361+ ASSERT_OK (WriteToMmap (64 , true , &header_offset , &schema));
362362
363363 std::shared_ptr<RecordBatchReader> reader;
364- ASSERT_OK (RecordBatchReader::Open (mmap_.get (), header_location , &reader));
364+ ASSERT_OK (RecordBatchReader::Open (mmap_.get (), header_offset , &reader));
365365 std::shared_ptr<RecordBatch> batch_result;
366366 ASSERT_RAISES (Invalid, reader->GetRecordBatch (schema, &batch_result));
367367}
0 commit comments