MCPcopy Create free account
hub / github.com/apache/datafusion / partition_pruning_statistics_setup

Function partition_pruning_statistics_setup

datafusion/common/src/pruning.rs:546–556  ·  view source on GitHub ↗

return a PartitionPruningStatistics for two columns 'a' and 'b' and the following stats | a | b | | - | - | | 1 | 2 | | 3 | 4 |

()

Source from the content-addressed store, hash-verified

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() {

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…