MCPcopy Create free account
hub / github.com/apache/paimon-rust / test_null_handling

Function test_null_handling

crates/paimon/src/spec/binary_row.rs:1235–1247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1233
1234 #[test]
1235 fn test_null_handling() {
1236 let mut builder = BinaryRowBuilder::new(3);
1237 builder.write_int(0, 42);
1238 builder.set_null_at(1);
1239 builder.write_int(2, 99);
1240 let row = builder.build();
1241
1242 assert!(!row.is_null_at(0));
1243 assert!(row.is_null_at(1));
1244 assert!(!row.is_null_at(2));
1245 assert_eq!(row.get_int(0).unwrap(), 42);
1246 assert_eq!(row.get_int(2).unwrap(), 99);
1247 }
1248
1249 #[test]
1250 fn test_get_string_variable_length() {

Callers

nothing calls this directly

Calls 3

write_intMethod · 0.45
set_null_atMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected