Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Commit 825fdfb

Browse files
author
Florentin DUBOIS
authored
Merge pull request #22 from ovh/fix/sampling/fill
fix(fill): support negative numbers
2 parents 7dcaec0 + 209faf2 commit 825fdfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tsl/genericParser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2890,7 +2890,7 @@ func (p *Parser) ParseFields(function string, internalFields map[int][]InternalF
28902890
tok, pos, lit = p.ScanIgnoreWhitespace()
28912891
if tok == STRING {
28922892
field.lit = "'" + lit + "'"
2893-
} else if tok == NUMBER || tok == INTEGER {
2893+
} else if tok == NUMBER || tok == INTEGER || tok == NEGNUMBER || tok == NEGINTEGER {
28942894
field.lit = lit
28952895
} else if tok == TRUE || tok == FALSE {
28962896
field.lit = tok.String()

0 commit comments

Comments
 (0)