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?