You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Flink Jira Bot (Jira)" <ji...@apache.org> on 2021/06/12 22:41:02 UTC
[jira] [Updated] (FLINK-9625) Enrich the error information to user
[ https://issues.apache.org/jira/browse/FLINK-9625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Flink Jira Bot updated FLINK-9625:
----------------------------------
Labels: auto-unassigned stale-major (was: auto-unassigned)
I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help the community manage its development. I see this issues has been marked as Major but is unassigned and neither itself nor its Sub-Tasks have been updated for 30 days. I have gone ahead and added a "stale-major" to the issue". If this ticket is a Major, please either assign yourself or give an update. Afterwards, please remove the label or in 7 days the issue will be deprioritized.
> Enrich the error information to user
> -------------------------------------
>
> Key: FLINK-9625
> URL: https://issues.apache.org/jira/browse/FLINK-9625
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / Legacy Planner
> Reporter: zhangminglei
> Priority: Major
> Labels: auto-unassigned, stale-major
>
> When the fields too many, and the types do not match with it would cause the below error. I think we should tell the users which field type does not match. Instead of only tell the users mismatch type which is.
> {code:java}
> Exception in thread "main" org.apache.flink.table.api.TableException: Result field does not match requested type. Requested: String; Actual: Integer
> at org.apache.flink.table.api.TableEnvironment$$anonfun$generateRowConverterFunction$1.apply(TableEnvironment.scala:953)
> at org.apache.flink.table.api.TableEnvironment$$anonfun$generateRowConverterFunction$1.apply(TableEnvironment.scala:944)
> at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
> at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
> at org.apache.flink.table.api.TableEnvironment.generateRowConverterFunction(TableEnvironment.scala:944)
> at org.apache.flink.table.api.StreamTableEnvironment.getConversionMapperWithChanges(StreamTableEnvironment.scala:358)
> at org.apache.flink.table.api.StreamTableEnvironment.translate(StreamTableEnvironment.scala:794)
> at org.apache.flink.table.api.StreamTableEnvironment.translate(StreamTableEnvironment.scala:734)
> at org.apache.flink.table.api.java.StreamTableEnvironment.toRetractStream(StreamTableEnvironment.scala:414)
> at org.apache.flink.table.api.java.StreamTableEnvironment.toRetractStream(StreamTableEnvironment.scala:357)
> at router.StreamRouterRunning.main(StreamRouterRunning.java:76)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)