| 332 | } |
| 333 | |
| 334 | Result<StreamingReaderFactory> MakeStreamingReaderFactory() { |
| 335 | return [](std::shared_ptr<io::InputStream> input_stream) |
| 336 | -> Result<std::shared_ptr<StreamingReader>> { |
| 337 | auto read_options = ReadOptions::Defaults(); |
| 338 | read_options.block_size = 1 << 10; |
| 339 | read_options.use_threads = true; |
| 340 | return StreamingReader::Make(io::default_io_context(), input_stream, read_options, |
| 341 | ParseOptions::Defaults(), ConvertOptions::Defaults()); |
| 342 | }; |
| 343 | } |
| 344 | |
| 345 | TEST(StreamingReaderTests, Empty) { TestEmptyTable(MakeStreamingFactory()); } |
| 346 | TEST(StreamingReaderTests, HeaderOnly) { |