Skip to content

fix: interval macro unit#5829

Open
vchan wants to merge 1 commit into
mainfrom
vchan/fix-interval-macro-unit
Open

fix: interval macro unit#5829
vchan wants to merge 1 commit into
mainfrom
vchan/fix-interval-macro-unit

Conversation

@vchan
Copy link
Copy Markdown
Collaborator

@vchan vchan commented Jun 4, 2026

Description

This PR fixes parsing interval spans when the second parameter, unit, is a macro variable. The unit was misread as an alias, e.g. INTERVAL @value @unit would be read as INTERVAL @value AS @unit.

Test Plan

A couple of test cases were added.

Checklist

  • I have run make style and fixed any issues
  • I have added tests for my changes (if applicable)
  • All existing tests pass (make fast-test)
  • My commits are signed off (git commit -s) per the DCO

Signed-off-by: Vincent Chan <vincent@tobikodata.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant