aokolnychyi commented on code in PR #55518:
URL: https://github.com/apache/spark/pull/55518#discussion_r3785101803
##########
sql/catalyst/src/main/java/org/apache/spark/sql/connector/write/LogicalWriteInfo.java:
##########
@@ -65,4 +65,14 @@ default Optional<StructType> metadataSchema() {
throw new SparkUnsupportedOperationException(
"DATA_SOURCE_METADATA_SCHEMA_NOT_IMPLEMENTED", Map.of("class",
getClass().getName()));
}
+
+ /**
+ * the narrow schema for updates. Present only when the connector mixes in
+ * {@link SupportsColumnUpdates}.
+ *
+ * @since 4.3.0
+ */
+ default Optional<StructType> updateSchema() {
Review Comment:
This could technically also become `columnUpdateSchema()`, if we decide to
do the rename. It does indicate the schema of copied rows in CoW and reinserted
rows. One thing I don't like is that it is longer.
--
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]