-
Notifications
You must be signed in to change notification settings - Fork 259
Description
Hi
We are a team working on a data warehouse for analytics, and are sad to see that currently, sqlmesh with trino does not support match_recognize with all its functionality (as it looks like).
I have a query which works fine in Trino 472 outside of sqlmesh.
In sqlmesh i get:
TrinoUserError: TrinoUserError(type=USER_ERROR, name=SYNTAX_ERROR, message="line 1:3802: mismatched input 'MATCH_RECOGNIZE'. Expecting: ',', 'CROSS', 'EXCEPT', 'FETCH', 'FULL', 'GROUP', 'HAVING', 'INNER', 'INTERSECT', 'JOIN', 'LEFT', 'LIMIT', 'NATURAL', 'OFFSET', 'ORDER', 'RIGHT', 'UNION', 'WHERE', 'WINDOW', 'WITH', <EOF>"
This sqlmesh points to the exact same trino engine as the working one, but the error happens before the trino engine is asked to run the query. I think it is about the parsing of the sql language into sqlmesh.
Is it true that match_recognize is not part i sqlmesh, even though the engine can use it easily? Or is it something you could plan adding into it.
Btw i must say apart from this, sqlmesh is really an amazing tool.
BR, Lauge