Equivalent to Flux/increase() in InfluxDB 3 SQL?

From the flux documentation:

The primary use case for increase() is tracking changes in counter values which may wrap overtime when they hit a threshold or are reset. In the case of a wrap/reset, increase() assumes that the absolute delta between two points is at least their non-negative difference.

So far I haven’t found anything corresponding in the list of SQL functions for InfluxDB 3. What is the best way to deal with wrapped or reset counters?

For InfluxQL there seems to be NON_NEGATIVE_DIFFERENCE() to help with counter resets. How can this be achieved with SQL in InfluxDB 3?