Skip to content

Commit 5c3d942

Browse files
committed
Update readme with date stuff
1 parent 06dffb5 commit 5c3d942

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ The layered approach emerged from TDD — writing tests first revealed natural b
155155
- [x] Vector KNN search: `vector_distance(field, :param)`
156156
- [x] Hybrid search (filters + vector)
157157
- [x] Full-text search: `LIKE 'prefix%'` (prefix), `fulltext(field, 'terms')` function
158+
- [x] Date functions: `YEAR()`, `MONTH()`, `DAY()`, `DATE_FORMAT()`, etc. (see below)
158159

159160
## What's Not Implemented (Yet...)
160161

@@ -229,6 +230,11 @@ SELECT name, DATE_FORMAT(created_at, '%Y-%m-%d') AS date FROM events
229230

230231
**Note:** Redis's `monthofyear()` returns 0-11 (not 1-12), and `dayofweek()` returns 0 for Sunday.
231232

233+
#### Limitations
234+
235+
- `NOT YEAR(field) = 2024` is not supported (raises `ValueError`)
236+
- `DATE_FORMAT()` is only supported in SELECT, not in WHERE (raises `ValueError`)
237+
- Date functions with `OR` require careful handling
232238

233239
## Development
234240

0 commit comments

Comments
 (0)