| 661 | } |
| 662 | |
| 663 | void CreateTestFile() { |
| 664 | PARQUET_ASSIGN_OR_THROW(auto outfile, |
| 665 | ::arrow::io::FileOutputStream::Open(GetDataFile())); |
| 666 | |
| 667 | StreamWriter os{ParquetFileWriter::Open(outfile, GetSchema())}; |
| 668 | |
| 669 | TestData::Init(); |
| 670 | |
| 671 | for (auto i = 0; i < TestData::num_rows; ++i) { |
| 672 | os << TestData::GetOptBool(i); |
| 673 | os << TestData::GetOptString(i); |
| 674 | os << TestData::GetOptChar(i); |
| 675 | os << TestData::GetOptCharArray(i); |
| 676 | os << TestData::GetOptInt8(i); |
| 677 | os << TestData::GetOptUInt16(i); |
| 678 | os << TestData::GetOptInt32(i); |
| 679 | os << TestData::GetOptUInt64(i); |
| 680 | os << TestData::GetOptChronoMicroseconds(i); |
| 681 | os << TestData::GetOptFloat(i); |
| 682 | os << TestData::GetOptDouble(i); |
| 683 | os << EndRow; |
| 684 | } |
| 685 | } |
| 686 | |
| 687 | StreamReader reader_; |
| 688 | }; |
nothing calls this directly
no test coverage detected