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

Function limit_test_split

crates/paimon/src/table/table_scan.rs:923–936  ·  view source on GitHub ↗
(file_name: &str, row_count: i64)

Source from the content-addressed store, hash-verified

921 }
922
923 fn limit_test_split(file_name: &str, row_count: i64) -> DataSplit {
924 let mut file = test_data_file_meta(Vec::new(), Vec::new(), Vec::new(), row_count);
925 file.file_name = file_name.to_string();
926
927 DataSplitBuilder::new()
928 .with_snapshot(1)
929 .with_partition(BinaryRow::new(0))
930 .with_bucket(0)
931 .with_bucket_path(format!("file:/tmp/{file_name}"))
932 .with_total_buckets(1)
933 .with_data_files(vec![file])
934 .build()
935 .unwrap()
936 }
937
938 fn limit_test_split_with_unknown_merged_row_count(
939 file_name: &str,

Callers

nothing calls this directly

Calls 8

test_data_file_metaFunction · 0.85
with_data_filesMethod · 0.80
with_total_bucketsMethod · 0.80
with_bucket_pathMethod · 0.80
with_bucketMethod · 0.80
with_partitionMethod · 0.80
with_snapshotMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected