[jira] [Created] (FLINK-12271) Display input field name list when throw Cannot resolve field exception

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-12271) Display input field name list when throw Cannot resolve field exception

Shang Yuanchun (Jira)
Hequn Cheng created FLINK-12271:
-----------------------------------

             Summary: 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: Bug
          Components: Table SQL / API
            Reporter: Hequn Cheng
            Assignee: Hequn Cheng


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
(v7.6.3#76005)