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


##########
docs/content.zh/docs/sql/reference/queries/deduplication.md:
##########
@@ -92,10 +92,10 @@ SELECT * FROM DEDUPLICATE(
 
 | Parameter | Required | Description |
 |:----------|:---------|:------------|
-| `input` | Yes | The append-only input table. `PARTITION BY` is required and 
its columns are the key of the output.|
+| `input` | Yes | The input table, append-only or updating. `PARTITION BY` is 
required and its columns are the key of the output. See [Updating 
input](#updating-input).|
 | `keep` | No | `'first'` (default) keeps the earliest arrival or the lowest 
`sequence_by` value, `'last'` keeps the latest arrival or the highest. Must be 
a literal. Arrival order is not deterministic across reruns, use `sequence_by` 
for a repeatable result. |
 | `sequence_by` | No | One or more columns that order the records of a key 
instead of their arrival, ascending, with strings and binaries compared 
lexicographically. The first column decides, later columns break ties, and 
`NULL` orders below every other value. On a tie, the later arrival wins for 
`'last'` and the earlier one for `'first'`. Columns must be of a type that 
`ORDER BY` supports, and not part of `PARTITION BY`. |
-| `state_ttl` | No | How long the state of an idle key is retained, as an 
`INTERVAL` literal. Every record of a key, including a dropped duplicate, 
restarts the TTL. Defaults to `table.exec.state.ttl`, and `INTERVAL '0' SECOND` 
disables expiry. After the state of a key expires, its next record is emitted 
as `+I` again. |
+| `state_ttl` | No | How long the state of an idle key is retained, as an 
`INTERVAL` literal. On append-only input, every record of a key, including a 
dropped duplicate, restarts the TTL. With several live rows per key, each row 
expires once it has not changed for the TTL and is then no longer a candidate, 
while the kept row is retained as long as any row of its key. Defaults to 
`table.exec.state.ttl`, and `INTERVAL '0' SECOND` disables expiry. After the 
state of a key expires, its next record is emitted as `+I` again. |

Review Comment:
   Keep the paramters overview short and easy to grasp. Add details in the 
additional sections below
   
   
   ```suggestion
   | `state_ttl` | No | How long the state of an idle key is retained, as an 
`INTERVAL` literal. Defaults to `table.exec.state.ttl`, and `INTERVAL '0' 
SECOND` disables expiry. A key that expired is emitted again with its next 
record. |
   ```
   
   You can add this somewhere in the updating input section 
   
   ```
   How long the state of an idle key is retained, as an `INTERVAL` literal. On 
append-only input, every record of a key, including a dropped duplicate, 
restarts the TTL. With several live rows per key, each row expires once it has 
not changed for the TTL and is then no longer a candidate, while the kept row 
is retained as long as any row of its key. Defaults to `table.exec.state.ttl`, 
and `INTERVAL '0' SECOND` disables expiry. After the state of a key expires, 
its next record is emitted as `+I` again. 
   ```



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