[
https://issues.apache.org/jira/browse/FLINK-12271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Flink Jira Bot updated FLINK-12271:
-----------------------------------
Labels: auto-unassigned pull-request-available (was:
pull-request-available stale-assigned)
> Display input field name list when throw Cannot resolve field exception
> -----------------------------------------------------------------------
>
> Key: FLINK-12271
> URL: https://issues.apache.org/jira/browse/FLINK-12271
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / API
> Reporter: Hequn Cheng
> Assignee: Hequn Cheng
> Priority: Major
> Labels: auto-unassigned, pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Currently, when we select a field that does not exist, an cannot solve field
> exception is thrown. For example,
> {code:java}
> org.apache.flink.table.api.ValidationException: Cannot resolve field [_4]
> {code}
> It would be better to also display the input field list to indicate existing
> fields, such as:
> {code:java}
> org.apache.flink.table.api.ValidationException: Cannot resolve field [_4],
> input field list:[_1, _2, _3].
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)