cursor_before_or_at()
A predicate function runs over the records of a table to compare their ingestion time against the database cursor time.
IngestionTime policy enabled.
Syntax
cursor_before_or_at(RHS)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| RHS | string | ✔️ | Either an empty string literal or a valid database cursor value. |
Returns
Returns a scalar value of type bool that indicates whether the record was ingested
before or at the database cursor RHS (true) or not (false).
Examples
The following example retrieves records ingested before or at a specific database cursor.
MyTable
| where cursor_before_or_at('2024-08-01T12:00:00Z')
Output
The output includes all records from MyTable that were ingested before or at the specified date, August 1, 2024, at 12:00 PM UTC.
This filters ‘MyTable’ to only include the records ingested before or at the specified cursor time.
Related content
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.