| 697 | } |
| 698 | |
| 699 | std::shared_ptr<MockDataset> MakePartitionSkipDataset() { |
| 700 | std::shared_ptr<Schema> test_schema = ScannerTestSchema(); |
| 701 | MockDatasetBuilder builder(test_schema); |
| 702 | builder.AddFragment(test_schema, /*inspection=*/nullptr, |
| 703 | equal(field_ref({1}), literal(100))); |
| 704 | std::shared_ptr<RecordBatch> batch = MakeTestBatch(0); |
| 705 | EXPECT_OK_AND_ASSIGN(batch, batch->RemoveColumn(1)); |
| 706 | builder.AddBatch(std::move(batch)); |
| 707 | builder.AddFragment(test_schema, /*inspection=*/nullptr, |
| 708 | equal(field_ref({1}), literal(50))); |
| 709 | batch = MakeTestBatch(1); |
| 710 | EXPECT_OK_AND_ASSIGN(batch, batch->RemoveColumn(1)); |
| 711 | builder.AddBatch(std::move(batch)); |
| 712 | return builder.Finish(); |
| 713 | } |
| 714 | |
| 715 | // Make a dataset where the dataset schema expects the "filterable" column to |
| 716 | // be a date but the partitioning interprets it as an integer |
no test coverage detected