Github user twalthr commented on a diff in the pull request:
https://github.com/apache/flink/pull/3958#discussion_r117724493
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/api/StreamTableEnvironment.scala
---
@@ -629,8 +629,7 @@ abstract class StreamTableEnvironment(
// if no change flags are requested, verify table is an insert-only
(append-only) table.
if (!withChangeFlag && !isAppendOnly(logicalPlan)) {
throw new TableException(
- "Table is not an append-only table. " +
- "Output needs to handle update and delete changes.")
+ "Table is not an append-only table. Try calling the
[table.toRetractStream] method.")
--- End diff --
I don't think that "try calling..." is a helpful message. What about "Table
is not an append-only table. Use the toRetractStream() in order to handle add
and retract messages."?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---