aokolnychyi commented on code in PR #54492:
URL: https://github.com/apache/spark/pull/54492#discussion_r2885446443
##########
sql/core/src/test/scala/org/apache/spark/sql/connector/RowLevelOperationSuiteBase.scala:
##########
@@ -152,6 +153,22 @@ abstract class RowLevelOperationSuiteBase
stripAQEPlan(executedPlan)
}
+ // executes an operation and extracts conditions from ReplaceData or
WriteDelta
+ protected def executeAndKeepConditions(func: => Unit): (Expression,
Option[Expression]) = {
+ val qes = withQueryExecutionsCaptured(spark)(func)
+ qes.head.optimizedPlan.collectFirst {
Review Comment:
I went for `val Seq(qe) = ...` as we expect only one execution.
--
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]