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

Function test_binary_set

datafusion/physical-expr-common/src/binary_map.rs:749–766  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

747 // Test use of binary output type
748 #[test]
749 fn test_binary_set() {
750 let values: ArrayRef = Arc::new(BinaryArray::from_opt_vec(vec![
751 Some(b"a"),
752 Some(b"CXCCCCCCCC"),
753 None,
754 Some(b"CXCCCCCCCC"),
755 ]));
756
757 let expected: ArrayRef = Arc::new(BinaryArray::from_opt_vec(vec![
758 Some(b"a"),
759 Some(b"CXCCCCCCCC"),
760 None,
761 ]));
762
763 let mut set = ArrowBytesSet::<i32>::new(OutputType::Binary);
764 set.insert(&values);
765 assert_eq!(&set.into_state(), &expected);
766 }
767
768 // Test use of binary output type
769 #[test]

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…