sqlformat
sqlformat copied to clipboard
Support of literal values as dedicated literal types
It would be ideal that the literal values in SQL script are parsed as dedicated literal types, such as StringLiteral, NumberLiteral, BooleanLiteral, etc. Currently they seem to be all parsed as IdentifierExpression.
For instance, with the following script:
select fielda
from table1 t1
where t1.fieldd = 10.0 or t1.fieldc = 'abc'
Ideally, 10.0 and 'abc' can be parsed as NumberLiteral and StringLiteral, and so on.