Describe the bug
Cardinality function parsing error
Database Engine
Athena
To Reproduce
it('should parse a query with cardinality function', function () {
const parser = new SqlParserV2()
const query = `
SELECT
id,
CAST(CURRENT_TIMESTAMP AS TIMESTAMP(6)) AS dbt_insert_time
FROM
some_table
WHERE
cardinality(
filter(map_values(note), VALUE -> VALUE IS NOT NULL)
) = 0;
`
const parsedSql = parser.parse(query, WarehouseType.Athena)
expect(parsedSql).toBeDefined()
})
Describe the bug Cardinality function parsing error
Database Engine Athena
To Reproduce