Describe the bug
A query couldn't be parsed with the 'mode' function
Database Engine
Snowflake
To Reproduce
it('Should parse query with mode', function () {
const parser = new SqlParser(WarehouseType.Snowflake)
const query = `
select
mode(name) OVER (
partition by
id
) most_frequent_name
from airbnb.staging_test1_montara1_com.raw_hosts h`
const parsedSql = parser.parse(query)
expect(parsedSql).toBeDefined()
})
Describe the bug A query couldn't be parsed with the 'mode' function
Database Engine Snowflake
To Reproduce