[
https://issues.apache.org/jira/browse/FLINK-22538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jark Wu closed FLINK-22538.
---------------------------
Resolution: Fixed
You can use {{EXPLAIN}} statement. It will go through the full code path to
generate a JobGraph for a query or DML.
> How to check sql is right before to execute across API
> --------------------------------------------------------
>
> Key: FLINK-22538
> URL: https://issues.apache.org/jira/browse/FLINK-22538
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / API
> Affects Versions: 1.12.2
> Reporter: ranqiqiang
> Priority: Major
>
> If user writes some flink-sql include (source query .... sink ) , then
> how to check the sql is right ?
> such as
> # the field nums is equals ?
> # the field type is match ?
> # udf is exist ?
> Because user executes sql will be wrong ! and found many errors, It's to
> late .
> I just want to check the sql-errors out before to execute sql!
>
> Now,how to get the check api or method?
> I think it's a usefull idea !
> I don't know alibaba blink could do this ?
> thanks
>
>
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)