You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WHERE clause with AND => need to stop evaluation early
#2653
I want to show files which match required regex and missing some tag in the list. Something like this:
table from "Inbox" AND -#unprocessed WHERE regextest("^\d{4}\.\d{2}.\d{2}$", file.name) AND date(file.name, "yyyy-MM-dd" > date("2026-01-01", "yyyy-MM-dd")) SORT file.name desc limit 70
The issue with this is that it stumbles over files which don't match regex. The issue seems to be that WHERE clause is not evaluated lazy. Even though regextest ignores the files, they are still passed to the next AND operand which fails.
I have files which don't match format yyyy-MM-dd and they fail whole execution:
- Can't handle format (yyyy-MM-dd) on date string (2026.W06)
- Can't handle format (yyyy-MM-dd) on date string (2026.M01)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I want to show files which match required regex and missing some tag in the list. Something like this:
The issue with this is that it stumbles over files which don't match regex. The issue seems to be that
WHEREclause is not evaluated lazy. Even thoughregextestignores the files, they are still passed to the nextANDoperand which fails.I have files which don't match format
yyyy-MM-ddand they fail whole execution:Any ideas how could I fix? Thanks!
All reactions