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

Function make_partitioned_batch

crates/paimon/src/table/table_write.rs:793–806  ·  view source on GitHub ↗
(pts: Vec<&str>, ids: Vec<i32>)

Source from the content-addressed store, hash-verified

791 }
792
793 fn make_partitioned_batch(pts: Vec<&str>, ids: Vec<i32>) -> RecordBatch {
794 let schema = Arc::new(ArrowSchema::new(vec![
795 ArrowField::new("pt", ArrowDataType::Utf8, false),
796 ArrowField::new("id", ArrowDataType::Int32, false),
797 ]));
798 RecordBatch::try_new(
799 schema,
800 vec![
801 Arc::new(arrow_array::StringArray::from(pts)),
802 Arc::new(Int32Array::from(ids)),
803 ],
804 )
805 .unwrap()
806 }
807
808 #[tokio::test]
809 async fn test_write_and_commit() {

Callers 1

test_write_partitionedFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_write_partitionedFunction · 0.68