return a PartitionPruningStatistics for two columns 'a' and 'b' and the following stats | a | b | | - | - | | 1 | 2 | | 3 | 4 |
()
| 544 | /// | 1 | 2 | |
| 545 | /// | 3 | 4 | |
| 546 | fn partition_pruning_statistics_setup() -> PartitionPruningStatistics { |
| 547 | let partition_values = vec![ |
| 548 | vec![ScalarValue::from(1i32), ScalarValue::from(2i32)], |
| 549 | vec![ScalarValue::from(3i32), ScalarValue::from(4i32)], |
| 550 | ]; |
| 551 | let partition_fields = vec![ |
| 552 | Arc::new(Field::new("a", DataType::Int32, false)), |
| 553 | Arc::new(Field::new("b", DataType::Int32, false)), |
| 554 | ]; |
| 555 | PartitionPruningStatistics::try_new(partition_values, partition_fields).unwrap() |
| 556 | } |
| 557 | |
| 558 | #[test] |
| 559 | fn test_partition_pruning_statistics() { |
no outgoing calls
searching dependent graphs…