aokolnychyi commented on code in PR #6371:
URL: https://github.com/apache/iceberg/pull/6371#discussion_r1041615901


##########
spark/v3.3/spark/src/test/java/org/apache/iceberg/spark/SparkTestBase.java:
##########
@@ -257,6 +268,42 @@ protected Dataset<Row> jsonToDF(String schema, String... 
records) {
     return spark.read().schema(schema).json(jsonDF);
   }
 
+  protected SparkPlan executeAndKeepPlan(String query, Object... args) {
+    return executeAndKeepPlan(() -> sql(query, args));
+  }
+
+  protected SparkPlan executeAndKeepPlan(Action action) {

Review Comment:
   A utility method to fetch what `SparkPlan` was actually executed.



-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to