Converts this [`DataFrame`] into a [`TableProvider`] that can be registered as a table view using [`SessionContext::register_table`]. Note: This discards the [`SessionState`] associated with this [`DataFrame`] in favour of the one passed to [`TableProvider::scan`]
(self)
| 1703 | /// Note: This discards the [`SessionState`] associated with this |
| 1704 | /// [`DataFrame`] in favour of the one passed to [`TableProvider::scan`] |
| 1705 | pub fn into_view(self) -> Arc<dyn TableProvider> { |
| 1706 | Arc::new(DataFrameTableProvider { |
| 1707 | plan: self.plan, |
| 1708 | table_type: TableType::View, |
| 1709 | }) |
| 1710 | } |
| 1711 | |
| 1712 | /// See [`Self::into_view`]. The returned [`TableProvider`] will |
| 1713 | /// create a transient table. |