[X] I had searched in the issues and found no similar issues.
What happened
Paser.parse is used for DDL parse in MockStatementExplainer.java, but this method will check if all tables of query exist if the statement is CTAS type.
For example, when parsing a statement like 'CREATE VIEW AS SELECT * FROM table_source', An Object Not found exception will be thrown as is shown above
What you expected to happen
Task debug will not work when MockSink is turn on.
How to reproduce
A possible solution is that using Parser.parseSql() rather than Parser.parse(), this method can only check the grammar of a single statement and parse it, which is more suitable for MockStatementExplainer.
I'm willing to submit a PR to fix this issue and it is submitted in this link: https://github.com/DataLinkDC/dinky/pull/3908/
Because parseSql can be called by Parser in flink1.14-1.15, by ExtendParser in flink 1.16-1.17 by ExtendedParser.getCustomParser in flink 1.18-1.20, codes in dinky-client is also changed.
Looking forward to your reply
Search before asking
What happened
Paser.parse is used for DDL parse in MockStatementExplainer.java, but this method will check if all tables of query exist if the statement is CTAS type. For example, when parsing a statement like 'CREATE VIEW AS SELECT * FROM table_source', An Object Not found exception will be thrown as is shown above
What you expected to happen
Task debug will not work when MockSink is turn on.
How to reproduce
A possible solution is that using Parser.parseSql() rather than Parser.parse(), this method can only check the grammar of a single statement and parse it, which is more suitable for MockStatementExplainer. I'm willing to submit a PR to fix this issue and it is submitted in this link: https://github.com/DataLinkDC/dinky/pull/3908/ Because parseSql can be called by Parser in flink1.14-1.15, by ExtendParser in flink 1.16-1.17 by ExtendedParser.getCustomParser in flink 1.18-1.20, codes in dinky-client is also changed. Looking forward to your reply
Anything else
No response
Version
dev
Are you willing to submit PR?
Code of Conduct