Skip to content

Error when using statements ending with ; #540

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

Open
1 task
metalshanked opened this issue Mar 18, 2025 · 0 comments
Open
1 task

Error when using statements ending with ; #540

metalshanked opened this issue Mar 18, 2025 · 0 comments
Assignees
Labels
wontfix This will not be worked on

Comments

@metalshanked
Copy link

Expected behavior

Ideally, SQL statements with or without ";" should work

Actual behavior

SQL statements ending with ";" are passthrough to Trino and fail with the below error.
Other JDBC Driver clients seem to remove the ";" and send to Trino

Steps To Reproduce

SELECT * FROM "catalog"."schema".table LIMIT 10;

io.trino.sql.parser.ParsingException: line 1:68: mismatched input ';'. Expecting: <EOF>
	at io.trino.sql.parser.ErrorHandler.syntaxError(ErrorHandler.java:108)
	at org.antlr.v4.runtime.ProxyErrorListener.syntaxError(ProxyErrorListener.java:41)
	at org.antlr.v4.runtime.Parser.notifyErrorListeners(Parser.java:544)
	at org.antlr.v4.runtime.DefaultErrorStrategy.reportInputMismatch(DefaultErrorStrategy.java:327)
	at org.antlr.v4.runtime.DefaultErrorStrategy.reportError(DefaultErrorStrategy.java:139)
	at io.trino.grammar.sql.SqlBaseParser.singleStatement(SqlBaseParser.java:352)

Log output

No response

Operating System

debian bookworm

Trino Python client version

0.318.0

Trino Server version

472

Python version

3.10.2

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@hashhar hashhar self-assigned this Apr 10, 2025
@hashhar hashhar added the wontfix This will not be worked on label Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Development

No branches or pull requests

2 participants