Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for EXECUTE IMMEDIATE in Trino #4118

Closed
usmanovbf opened this issue Sep 13, 2024 · 1 comment
Closed

Add support for EXECUTE IMMEDIATE in Trino #4118

usmanovbf opened this issue Sep 13, 2024 · 1 comment

Comments

@usmanovbf
Copy link
Contributor

Is your feature request related to a problem? Please describe.
For now, there is no way to parse EXECUTE IMMEDIATE statement in Trino, since there is an error for

self.validate_identity(
            """EXECUTE IMMEDIATE 'INSERT INTO a (b, c, d) VALUES (?, ?, ?)' USING DATE '2024-08-23', TIMESTAMP '2024-08-23 09:28:42.000000 UTC', DOUBLE '0.0', 'test'"""
        )
'EXECUTE IMMEDIATE 'INSERT INTO a (b, c, d) VALUES (?, ?, ?)' USING DATE '2024-08-23', TIMESTAMP '202' contains unsupported syntax. Falling back to parsing as a 'Command'.

Describe the solution you'd like
Add parser for the EXECUTE IMMEDIATE statement

Describe alternatives you've considered

Additional context
I was confused how to do it since it clashes with the existing TokenType.EXECUTE - see the discussion

@tobymao
Copy link
Owner

tobymao commented Sep 14, 2024

low priority. feel free to submit a well crafted pr but this will not be prioritized by the core team

@tobymao tobymao closed this as not planned Won't fix, can't repro, duplicate, stale Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants