File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1365,8 +1365,7 @@ impl TableOptions {
1365
1365
/// A new `TableOptions` instance with settings applied from the session config.
1366
1366
pub fn default_from_session_config ( config : & ConfigOptions ) -> Self {
1367
1367
let initial = TableOptions :: default ( ) ;
1368
- initial. combine_with_session_config ( config) ;
1369
- initial
1368
+ initial. combine_with_session_config ( config)
1370
1369
}
1371
1370
1372
1371
/// Updates the current `TableOptions` with settings from a given session config.
@@ -1378,6 +1377,7 @@ impl TableOptions {
1378
1377
/// # Returns
1379
1378
///
1380
1379
/// A new `TableOptions` instance with updated settings from the session config.
1380
+ #[ must_use = "this method returns a new instance" ]
1381
1381
pub fn combine_with_session_config ( & self , config : & ConfigOptions ) -> Self {
1382
1382
let mut clone = self . clone ( ) ;
1383
1383
clone. parquet . global = config. execution . parquet . clone ( ) ;
You can’t perform that action at this time.
0 commit comments