Describe the bug
A Minus operator before a column without parentheses is invalid
Database Engine
Redshift
To Reproduce
Minus before column "minimum_nights" is invalid
it('should parse a query with qualify', function () {
const parser = new SqlParser()
const query = SELECT * FROM montara_raw.raw_listings WHERE price = -minimum_nights
const parsedSql = parser.parse(query, WarehouseType.Redshift)
expect(parsedSql).toBeDefined()
})
Expected behavior
Valid query