Make a dataset where the dataset schema expects the "filterable" column to be a date but the partitioning interprets it as an integer
| 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 |
| 717 | std::shared_ptr<MockDataset> MakeInvalidPartitionSkipDataset() { |
| 718 | std::shared_ptr<Schema> test_schema = ScannerTestSchema(); |
| 719 | EXPECT_OK_AND_ASSIGN(test_schema, |
| 720 | test_schema->SetField(1, field("filterable", date64()))); |
| 721 | MockDatasetBuilder builder(test_schema); |
| 722 | builder.AddFragment(test_schema, /*inspection=*/nullptr, |
| 723 | equal(field_ref({1}), literal(100))); |
| 724 | std::shared_ptr<RecordBatch> batch = MakeTestBatch(0); |
| 725 | EXPECT_OK_AND_ASSIGN(batch, batch->RemoveColumn(1)); |
| 726 | builder.AddBatch(std::move(batch)); |
| 727 | return builder.Finish(); |
| 728 | } |
| 729 | |
| 730 | TEST(TestNewScanner, PartitionSkip) { |
| 731 | internal::Initialize(); |
no test coverage detected