File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1655,7 +1655,7 @@ impl DataFrame {
16551655 pub fn into_view ( self ) -> Arc < dyn TableProvider > {
16561656 Arc :: new ( DataFrameTableProvider {
16571657 plan : self . plan ,
1658- table_type : TableType :: Temporary ,
1658+ table_type : TableType :: View ,
16591659 } )
16601660 }
16611661
Original file line number Diff line number Diff line change @@ -1627,7 +1627,9 @@ async fn register_table() -> Result<()> {
16271627 let df_impl = DataFrame :: new ( ctx. state ( ) , df. logical_plan ( ) . clone ( ) ) ;
16281628
16291629 // register a dataframe as a table
1630- ctx. register_table ( "test_table" , df_impl. clone ( ) . into_view ( ) ) ?;
1630+ let table_provider = df_impl. clone ( ) . into_view ( ) ;
1631+ assert_eq ! ( table_provider. table_type( ) , TableType :: View ) ;
1632+ ctx. register_table ( "test_table" , table_provider) ?;
16311633
16321634 // pull the table out
16331635 let table = ctx. table ( "test_table" ) . await ?;
You can’t perform that action at this time.
0 commit comments