Describe the bug
Athena parser error - UNNEST with db.schema.table
Database Engine
Athena
To Reproduce
it('should parse a query with db.schema.table', function () {
const parser = new SqlParserV2()
const query = `
SELECT
j.id,
h.created AS change_time,
i.fromstring AS from_status,
i.tostring AS to_status
FROM
"bronze_prod"."jira_issues" j
CROSS JOIN
UNNEST(j.changelog.histories) AS T (h)
CROSS JOIN
UNNEST(h.items) AS T (i)
WHERE
i.field = 'status'`
const parsedSql = parser.parse(query, WarehouseType.Athena)
expect(parsedSql).toBeDefined()
})
Describe the bug Athena parser error - UNNEST with db.schema.table
Database Engine Athena
To Reproduce