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

Function table_scan

datafusion/expr/src/logical_plan/builder.rs:2061–2067  ·  view source on GitHub ↗

Create a LogicalPlanBuilder representing a scan of a table with the provided name and schema. This is mostly used for testing and documentation.

(
    name: Option<impl Into<TableReference>>,
    table_schema: &Schema,
    projection: Option<Vec<usize>>,
)

Source from the content-addressed store, hash-verified

2059/// Create a LogicalPlanBuilder representing a scan of a table with the provided name and schema.
2060/// This is mostly used for testing and documentation.
2061pub fn table_scan(
2062 name: Option<impl Into<TableReference>>,
2063 table_schema: &Schema,
2064 projection: Option<Vec<usize>>,
2065) -> Result<LogicalPlanBuilder> {
2066 table_scan_with_filters(name, table_schema, projection, vec![])
2067}
2068
2069/// Create a LogicalPlanBuilder representing a scan of a table with the provided name and schema,
2070/// and inlined filters.

Calls 1

table_scan_with_filtersFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…