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

Method into_view

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

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)

Source from the content-addressed store, hash-verified

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.

Callers 7

filter_pushdown_viewFunction · 0.80
limit_pushdown_viewFunction · 0.80
register_tableFunction · 0.80
with_column_renamed_joinFunction · 0.80

Calls 1

newFunction · 0.85

Tested by 6

filter_pushdown_viewFunction · 0.64
limit_pushdown_viewFunction · 0.64
register_tableFunction · 0.64
with_column_renamed_joinFunction · 0.64