-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Add support for SQL INTERVAL expressions for date/time arithmetic.
Example SQL
SELECT NOW() - INTERVAL '1 day';
SELECT created_at + INTERVAL '2 hours' FROM events;
SELECT * FROM orders WHERE created_at > NOW() - INTERVAL '30 days';
SELECT INTERVAL '1 year 2 months 3 days';Current Behavior
INTERVAL expressions may not be fully parsed.
Expected Behavior
Parser should recognize INTERVAL keyword and parse the interval value with unit specifications.
Priority
Medium - commonly used for date/time calculations
Implementation Notes
- Add
TokenTypeIntervaltoken type if not present - Create
IntervalExpressionAST node - Support various interval formats:
'1 day','2 hours', compound intervals
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request