File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
etl-destinations/src/deltalake Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -449,12 +449,14 @@ where
449
449
S : StateStore + SchemaStore + Send + Sync ,
450
450
{
451
451
async fn truncate_table ( & self , table_id : TableId ) -> EtlResult < ( ) > {
452
+ // This is currently a no-op, due to the logic relying on table existence and schemas
453
+ return Ok ( ( ) ) ;
452
454
let table_path = self . get_table_path ( table_id) . await ?;
453
- let table = self . ensure_table_exists ( table_id) . await ?;
454
455
455
456
info ! ( "Truncating Delta table for table_id: {}" , table_id. 0 ) ;
456
457
457
458
// Use delete with predicate "true" to remove all rows
459
+ let table = self . ensure_table_exists ( table_id) . await ?;
458
460
let updated_table = self . client . truncate_table ( table) . await . map_err ( |e| {
459
461
etl_error ! (
460
462
ErrorKind :: DestinationError ,
You can’t perform that action at this time.
0 commit comments