anuragmantri commented on code in PR #56792:
URL: https://github.com/apache/spark/pull/56792#discussion_r3485050429


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/RewriteDeleteFromTable.scala:
##########
@@ -45,7 +44,7 @@ object RewriteDeleteFromTable extends RewriteRowLevelCommand {
           d
 
         case r @ ExtractV2Table(t: SupportsRowLevelOperations) =>

Review Comment:
   Great catch. I looked at those paths. The options are  indeed not being 
passed all the way. Fixing this requires DSv2 API changes something like this 
with default methods. 
   
   ```java
     // SupportsDeleteV2
     default void deleteWhere(Predicate[] predicates, CaseInsensitiveStringMap 
options) {
       deleteWhere(predicates);   // default ignores options → fully 
back-compatible
     }
     // TruncatableTable
     default boolean truncateTable(CaseInsensitiveStringMap options) {
       return truncateTable();
     }
   ```
   
   I can make this change in this same PR or can do a follow up if DSv2 changes 
need separate PRs. Let me know what do you think is the best way forward. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to