Skip to content

Redshift - support minus operator before amcolumn without parentheses  #1892

@LaizaAngrest

Description

@LaizaAngrest

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions