SELECT COUNT(*) FROM table WHERE column1 + 1 >= column2 - 1
These queries are however not valid, as they hit our clear expression restrictions.
Case in point is the following query on the BankTransactions data source:
SELECT count(*), count_noise(*) FROM transactions WHERE amount - 1 >= zip + 1
Proposed fix:
fix the docs by removing this example as a valid query, and validate the surrounding text that it's still correct
In the constant ranges restrictions doc (https://github.com/Aircloak/aircloak/blob/master/air/priv/static/docs/sql/restrictions.md#constant-ranges) we show examples of valid and invalid queries. A query we say is valid is:
These queries are however not valid, as they hit our clear expression restrictions. Case in point is the following query on the BankTransactions data source:
Proposed fix: