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

Function test_snapshot

crates/integrations/datafusion/src/procedures.rs:531–543  ·  view source on GitHub ↗
(id: i64, time_millis: u64)

Source from the content-addressed store, hash-verified

529 }
530
531 fn test_snapshot(id: i64, time_millis: u64) -> Snapshot {
532 Snapshot::builder()
533 .version(3)
534 .id(id)
535 .schema_id(0)
536 .base_manifest_list("base-list".to_string())
537 .delta_manifest_list("delta-list".to_string())
538 .commit_user("test-user".to_string())
539 .commit_identifier(0)
540 .commit_kind(CommitKind::APPEND)
541 .time_millis(time_millis)
542 .build()
543 }
544
545 async fn setup(table_path: &str) -> (paimon::io::FileIO, SnapshotManager, TagManager) {
546 let file_io = test_file_io();

Calls 10

commit_kindMethod · 0.80
commit_identifierMethod · 0.80
commit_userMethod · 0.80
delta_manifest_listMethod · 0.80
base_manifest_listMethod · 0.80
buildMethod · 0.45
time_millisMethod · 0.45
schema_idMethod · 0.45
idMethod · 0.45
versionMethod · 0.45

Tested by

no test coverage detected