MCPcopy Create free account
hub / github.com/apache/datafusion / create_table_provider

Function create_table_provider

datafusion/core/benches/sql_planner.rs:69–74  ·  view source on GitHub ↗
(column_prefix: &str, num_columns: usize)

Source from the content-addressed store, hash-verified

67}
68
69fn create_table_provider(column_prefix: &str, num_columns: usize) -> Arc<MemTable> {
70 let schema = Arc::new(create_schema(column_prefix, num_columns));
71 MemTable::try_new(schema, vec![vec![]])
72 .map(Arc::new)
73 .unwrap()
74}
75
76/// Create a table provider with a struct column: `id` (Int32) and `props` (Struct { value: Int32, label: Utf8 })
77fn create_struct_table_provider() -> Arc<MemTable> {

Callers 1

create_contextFunction · 0.70

Calls 3

newFunction · 0.85
create_schemaFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…