[ 
https://issues.apache.org/jira/browse/FLINK-15584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benoît Paris updated FLINK-15584:
---------------------------------
    Description: 
In 
{code:java}
INSERT INTO baz_sink
SELECT
  a,
  ROW(b, c)
FROM foo_source{code}
 

Schema mismatch mistakes will not get proper detail level, yielding the 
following:

Caused by: org.apache.flink.table.api.ValidationException: Field types of query 
result and registered TableSink [baz_sink] do not match.
Query result schema: [a: Integer, EXPR$2: Row]
TableSink schema: [a: Integer, payload: Row]

 

Leaving the user with an opaque 'Row' type to debug.

 

  was:
In

 

 
{code:java}
INSERT INTO baz_sinkSELECT
  a,
  ROW(b, c)
FROM foo_source{code}
 

 


> Give nested data type of ROWs in ValidationException
> ----------------------------------------------------
>
>                 Key: FLINK-15584
>                 URL: https://issues.apache.org/jira/browse/FLINK-15584
>             Project: Flink
>          Issue Type: Improvement
>            Reporter: Benoît Paris
>            Priority: Major
>
> In 
> {code:java}
> INSERT INTO baz_sink
> SELECT
>   a,
>   ROW(b, c)
> FROM foo_source{code}
>  
> Schema mismatch mistakes will not get proper detail level, yielding the 
> following:
> Caused by: org.apache.flink.table.api.ValidationException: Field types of 
> query result and registered TableSink [baz_sink] do not match.
> Query result schema: [a: Integer, EXPR$2: Row]
> TableSink schema: [a: Integer, payload: Row]
>  
> Leaving the user with an opaque 'Row' type to debug.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to