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)
| 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. |