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

Method schema

datafusion/core/src/dataframe/mod.rs:1660–1662  ·  view source on GitHub ↗

Returns the `DFSchema` describing the output of this DataFrame. The output `DFSchema` contains information on the name, data type, and nullability for each column. # Example ``` # use datafusion::prelude::*; # use datafusion::error::Result; # #[tokio::main] # async fn main() -> Result<()> { let ctx = SessionContext::new(); let df = ctx .read_csv("tests/data/example.csv", CsvReadOptions::new()) .

(&self)

Source from the content-addressed store, hash-verified

1658 /// # }
1659 /// ```
1660 pub fn schema(&self) -> &DFSchema {
1661 self.plan.schema()
1662 }
1663
1664 /// Return a reference to the unoptimized [`LogicalPlan`] that comprises
1665 /// this DataFrame.

Callers 15

merge_sortedMethod · 0.45
sort_mergeMethod · 0.45
sortMethod · 0.45
sort_partitionedMethod · 0.45
create_planFunction · 0.45
register_string_tableFunction · 0.45
parse_sql_exprMethod · 0.45
select_columnsMethod · 0.45
drop_columnsMethod · 0.45

Calls 1

innerMethod · 0.45

Tested by 1

test_from_existingFunction · 0.36