Repository navigation
Conversation
…erals Lex numbers in one Float rule ahead of Label_name, so a digit right after a dot makes a number and .95, -.5, 5., 1e3 and .5e2 parse as in Tempo v3.1.0. Drop the Integer Dot Integer grammar form, so 5 . 5 is an error.
This was referenced Nov 9, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1034, from its review ("
.95doesn't parse"). Based onfeat/traceql-structural-ops; merges into it as a merge commit. #1087 is stacked on this one.Summary
One lexer rule, matching Tempo v3.1.0: a
Floattoken beforeLabel_namereplaces the oldFloat, covering leading-dot and trailing-dot floats and exponents..95,-.5,5.,1e3and.5e2parse. A digit right after.makes a number, so{ .5xx = 1 }is a syntax error as in Tempo, whilespan.5xxand.foo.95stay attributes.Breaking changes
Queries that now fail
{ .5xx = 1 }and other unscoped attribute names that start with a digit are syntax errors, as in Tempo. Writespan.5xx, or quote the name with the literals PR (."5xx").5 . 5(spaces around the dot) is a syntax error. It used to read as5.5.Upgrade notes
None. No setting, schema or plugin change.
Evidence
1 . 5pins are rewritten as1.5.go test ./...passes. The full e2e suite andgrid.traceqlpass on the full stack tip, which includes this branch.Merge Danger
Door: two-way. Parser only.
Blast Radius: TraceQL parsing. Queries Tempo accepts with these literals now parse; the two shapes above stop parsing.
Not in this PR, unchanged: arithmetic boundaries between an attribute and a float (
.foo*.5,duration-.5), and small floats losing precision when rendered into SQL.