gustavodemorais commented on code in PR #30173:
URL: https://github.com/apache/flink/pull/30173#discussion_r4773211435


##########
docs/content.zh/docs/dev/table/functions/ptfs.md:
##########
@@ -1794,6 +1796,36 @@ SELECT * FROM f(table_arg => TABLE UpdatingTable 
PARTITION BY name)
 // In both encodings, a materialized table would only contain a row for Alice.
 ```
 
+#### Ignoring Retractions
+
+The `ArgumentTrait.IGNORE_RETRACTIONS` instructs the system that a table 
argument which `SUPPORT_UPDATES` reads only
+`RowKind.INSERT` and `RowKind.UPDATE_AFTER` messages. The function never 
receives `RowKind.UPDATE_BEFORE` or
+`RowKind.DELETE` messages, so it must not rely on them, for example to learn 
the previous version of a row or that a
+row was deleted.
+
+In return, the system can provide the updating table more cheaply. It drops 
retractions early and needs neither an
+upsert key nor a stateful normalization of an upsert changelog in front of the 
function.
+
+```java
+public void eval(@ArgumentHint({ROW_SEMANTIC_TABLE, SUPPORT_UPDATES, 
IGNORE_RETRACTIONS}) Row input) {

Review Comment:
   done



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