ZiyaZa commented on code in PR #57402:
URL: https://github.com/apache/spark/pull/57402#discussion_r3623217829


##########
sql/catalyst/src/main/java/org/apache/spark/sql/connector/write/RowLevelOperation.java:
##########
@@ -54,6 +55,18 @@ default String description() {
    */
   Command command();
 
+  /**
+   * Returns the schema of the rows produced by this operation.
+   * <p>
+   * Spark calls this method during planning. The returned schema must match 
the rows returned by
+   * {@link Write#output()} after the write commits successfully.
+   *
+   * @since 4.3.0
+   */
+  default StructType outputSchema() {
+    return new StructType();

Review Comment:
   I called .show() on a MERGE query and it showed:
   ```
   ++
   ||
   ++
   ++
   ```
   
   So yes, the schema was empty.



-- 
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