Skip to content

fix: interval macro unit#5829

Merged
vchan merged 1 commit into
mainfrom
vchan/fix-interval-macro-unit
Jun 5, 2026
Merged

fix: interval macro unit#5829
vchan merged 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>
@vchan vchan merged commit 278757c into main Jun 5, 2026
31 checks passed
@vchan vchan deleted the vchan/fix-interval-macro-unit branch June 5, 2026 18:31
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.

2 participants