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

Function test_get_timestamp_compact

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

Source from the content-addressed store, hash-verified

1370
1371 #[test]
1372 fn test_get_timestamp_compact() {
1373 let epoch_millis: i64 = 1_704_067_200_000;
1374 let mut builder = BinaryRowBuilder::new(1);
1375 builder.write_timestamp_compact(0, epoch_millis);
1376 let row = builder.build();
1377
1378 let (millis, nano) = row.get_timestamp_raw(0, 3).unwrap();
1379 assert_eq!(millis, epoch_millis);
1380 assert_eq!(nano, 0);
1381 }
1382
1383 #[test]
1384 fn test_write_datum_int_and_string() {

Callers

nothing calls this directly

Calls 3

get_timestamp_rawMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected