@@ -327,6 +327,7 @@ impl RawDeltaTable {
327327 /// This will acquire the internal lock since it is a mutating operation!
328328 pub fn load_version ( & self , py : Python , version : i64 ) -> PyResult < ( ) > {
329329 py. allow_threads ( || {
330+ #[ allow( clippy:: await_holding_lock) ]
330331 rt ( ) . block_on ( async {
331332 let mut table = self
332333 . _table
@@ -344,6 +345,7 @@ impl RawDeltaTable {
344345 /// Retrieve the latest version from the internally loaded table state
345346 pub fn get_latest_version ( & self , py : Python ) -> PyResult < i64 > {
346347 py. allow_threads ( || {
348+ #[ allow( clippy:: await_holding_lock) ]
347349 rt ( ) . block_on ( async {
348350 match self . _table . lock ( ) {
349351 Ok ( table) => table
@@ -359,6 +361,7 @@ impl RawDeltaTable {
359361
360362 pub fn get_earliest_version ( & self , py : Python ) -> PyResult < i64 > {
361363 py. allow_threads ( || {
364+ #[ allow( clippy:: await_holding_lock) ]
362365 rt ( ) . block_on ( async {
363366 match self . _table . lock ( ) {
364367 Ok ( table) => table
@@ -397,6 +400,7 @@ impl RawDeltaTable {
397400 DateTime :: < Utc > :: from ( DateTime :: < FixedOffset > :: parse_from_rfc3339 ( ds) . map_err (
398401 |err| PyValueError :: new_err ( format ! ( "Failed to parse datetime string: {err}" ) ) ,
399402 ) ?) ;
403+ #[ allow( clippy:: await_holding_lock) ]
400404 rt ( ) . block_on ( async {
401405 let mut table = self
402406 . _table
@@ -1041,6 +1045,7 @@ impl RawDeltaTable {
10411045 /// Run the History command on the Delta Table: Returns provenance information, including the operation, user, and so on, for each write to a table.
10421046 #[ pyo3( signature = ( limit=None ) ) ]
10431047 pub fn history ( & self , limit : Option < usize > ) -> PyResult < Vec < String > > {
1048+ #[ allow( clippy:: await_holding_lock) ]
10441049 let history = rt ( ) . block_on ( async {
10451050 match self . _table . lock ( ) {
10461051 Ok ( table) => table
@@ -1058,6 +1063,7 @@ impl RawDeltaTable {
10581063 }
10591064
10601065 pub fn update_incremental ( & self ) -> PyResult < ( ) > {
1066+ #[ allow( clippy:: await_holding_lock) ]
10611067 #[ allow( deprecated) ]
10621068 Ok ( rt ( )
10631069 . block_on ( async {
@@ -1102,10 +1108,9 @@ impl RawDeltaTable {
11021108 }
11031109 fields
11041110 } else {
1105- return Err ( DeltaTableError :: generic (
1111+ return Err ( PythonError :: from ( DeltaTableError :: generic (
11061112 "Couldn't construct list of fields for file stats expression gatherings" ,
1107- ) )
1108- . map_err ( PythonError :: from) ?;
1113+ ) ) ) ?;
11091114 } ;
11101115
11111116 self . cloned_state ( ) ?
@@ -1368,6 +1373,7 @@ impl RawDeltaTable {
13681373
13691374 // Runs lakefs pre-execution
13701375 if store. name ( ) == "LakeFSLogStore" {
1376+ #[ allow( clippy:: await_holding_lock) ]
13711377 rt ( ) . block_on ( async {
13721378 handle
13731379 . before_post_commit_hook ( store, true , operation_id)
@@ -1376,6 +1382,7 @@ impl RawDeltaTable {
13761382 . map_err ( PythonError :: from) ?;
13771383 }
13781384
1385+ #[ allow( clippy:: await_holding_lock) ]
13791386 let result = rt ( ) . block_on ( async {
13801387 match self . _table . lock ( ) {
13811388 Ok ( table) => create_checkpoint ( & table, Some ( operation_id) )
@@ -1409,6 +1416,7 @@ impl RawDeltaTable {
14091416
14101417 // Runs lakefs pre-execution
14111418 if store. name ( ) == "LakeFSLogStore" {
1419+ #[ allow( clippy:: await_holding_lock) ]
14121420 rt ( ) . block_on ( async {
14131421 handle
14141422 . before_post_commit_hook ( store, true , operation_id)
@@ -1417,6 +1425,7 @@ impl RawDeltaTable {
14171425 . map_err ( PythonError :: from) ?;
14181426 }
14191427
1428+ #[ allow( clippy:: await_holding_lock) ]
14201429 let result = rt ( ) . block_on ( async {
14211430 match self . _table . lock ( ) {
14221431 Ok ( table) => {
0 commit comments