MCPcopy Create free account
hub / github.com/apache/arrow-rs / test_encode_no_column_batch

Function test_encode_no_column_batch

arrow-flight/src/encode.rs:1792–1801  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1790
1791 #[test]
1792 fn test_encode_no_column_batch() {
1793 let batch = RecordBatch::try_new_with_options(
1794 Arc::new(Schema::empty()),
1795 vec![],
1796 &RecordBatchOptions::new().with_row_count(Some(10)),
1797 )
1798 .expect("cannot create record batch");
1799
1800 hydrate_dictionaries(&batch, batch.schema()).expect("failed to optimize");
1801 }
1802
1803 fn make_flight_data(
1804 batch: &RecordBatch,

Callers

nothing calls this directly

Calls 3

hydrate_dictionariesFunction · 0.85
with_row_countMethod · 0.80
schemaMethod · 0.45

Tested by

no test coverage detected