http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/What-is-the-suggested-way-to-validate-SQL-tp31846p31858.html
Hi Kaibo,
> Validate SQL syntax not need to depend on connector jar
At present, sql function strongly need jar dependent support too , but the overall approach is still under discussion, and there is no clear plan at present.
But you are right, it really important for platform users.
Another way is to start a process for each SQL, which contains the user's jars.
> what is the suggested way to validate a FLINK SQL?
- If you use "StreamTableEnvironment.create", every "sqlUpdate" will generate execution plan, so it should contains validation.
- If you use "TableEnvironment.create(EnvironmentSettings)". After "sqlUpdate", will buffer modifyOperations in table env. And I think you can use "TableEnvironment.explain(boolean)" to validate SQL, it will generate execution plan, will validate sink too.
Best,
Jingsong Lee