-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-15584] Give nested data type of ROWs in ValidationException. #10978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit fea346b (Fri Feb 28 21:48:40 UTC 2020) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsThe Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
|
@flinkbot run azure |
docete
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ayushtkn Thanks for your PR and left some comments.
...k-table/flink-table-planner/src/main/scala/org/apache/flink/table/sinks/TableSinkUtils.scala
Outdated
Show resolved
Hide resolved
...k-table/flink-table-planner/src/main/scala/org/apache/flink/table/sinks/TableSinkUtils.scala
Outdated
Show resolved
Hide resolved
|
Please improve the PR naming and description so can be more easily and more thoroughly reviewed. See https://flink.apache.org/contributing/code-style-and-quality-pull-requests.html |
|
Thanx @docete for the review. |
|
@ayushtkn Can you rebase your change to the latest master? The test failures are caused by an issue that has been addressed by now. |
|
Thanx @rmetzger for the review. |
|
Okay, let's wait for the CI system to pick this up |
|
Thanx @rmetzger |
JingsongLi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ayushtkn for your contribution, looks good to me.
|
|
||
| val sql = "INSERT INTO targetTable SELECT a, b FROM sourceTable" | ||
|
|
||
| util.tableEnv.sqlUpdate(sql)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, } should be new line. I will modify it before merge.
|
I will modify commit title to |
|
Merged in: 3408ead |
|
Thank you @JingsongLi ! |
In
INSERT INTO baz_sink
SELECT
a,
ROW(b, c)
FROM foo_source
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.