twalthr commented on code in PR #28403:
URL: https://github.com/apache/flink/pull/28403#discussion_r3412673435


##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/plan/stream/sql/ProcessTableFunctionTest.java:
##########
@@ -513,6 +517,11 @@ private static Stream<ErrorSpec> errorSpecs() {
                         "SELECT * FROM f(r => TABLE t_watermarked PARTITION BY 
name, on_time => DESCRIPTOR(ts))",
                         "Time operations using the `on_time` argument are 
currently not supported for "
                                 + "PTFs that consume or produce updates."),
+                ErrorSpec.ofInsertInto(
+                        "upsert output into sink without primary key",
+                        UpdatingUpsertFunction.class,
+                        "INSERT INTO t_no_pk_sink SELECT * FROM f(r => TABLE 
t_updating PARTITION BY name)",
+                        "declare a PRIMARY KEY on the sink"),

Review Comment:
   Please add the full error message to the spec. Otherwise reviewers can't see 
the resulting message after this PR.



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

Reply via email to