[ https://issues.apache.org/jira/browse/FLINK-21566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17294239#comment-17294239 ]
Jark Wu commented on FLINK-21566: --------------------------------- Improving error messages is always good. However, currently the "Unsupported casting" exception is thrown during code generation where the code location information is lost. > Improve error message for "Unsupported casting" > ----------------------------------------------- > > Key: FLINK-21566 > URL: https://issues.apache.org/jira/browse/FLINK-21566 > Project: Flink > Issue Type: New Feature > Components: Table SQL / API > Affects Versions: 1.12.1 > Reporter: Nico Kruber > Priority: Major > > In a situation like from FLINK-21565, neither the error message {{Unsupported > casting from TINYINT to INTERVAL SECOND(3)}}, nor the exception trace (see > FLINK-21565) gives you a good hint on where the error is, especially if you > have many statements with TINYINTs or operations on these. > The query parser could highlight the location of the error inside the SQL > statement that the user provided. -- This message was sent by Atlassian Jira (v8.3.4#803005)