Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzelin committed Jan 2, 2025
1 parent 585311f commit 716470f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/content/flink/sql-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,19 @@ If you want see `DELETE` records, you can use audit_log table:
SELECT * FROM t$audit_log /*+ OPTIONS('incremental-between' = '12,20') */;
```

### Batch Incremental between Auto-created Tags

By default, batch incremental read will strictly find the start and end snapshots. But for auto-created tag, the tag may
not be created because of data delay.

For example, assume that the tag for '2024-12-20' is created, then the data of 12-21
doesn't be suggested in time, but come with data at 12-22, and the tag '2024-12-22' will actual contains two days data.

When you read the incremental data between tag '2024-12-21' and '2024-12-22', if you actually demand is to get the incremental
from the most earlier tag before '2024-12-22' to '2024-12-22', you can set `incremental-auto-tag-start-mode` to allow to
find the real start tag. If you set to `earlier-strict`, it will throw an exception if no earlier start tag; If you set
to `earlier-or-empty`, it will return an empty result set if no earlier start tag.

## Streaming Query

By default, Streaming read produces the latest snapshot on the table upon first startup,
Expand Down

0 comments on commit 716470f

Please sign in to comment.