GitHub user sunjincheng121 opened a pull request:
https://github.com/apache/flink/pull/4640
[FLINK-7572][table]Improve TableSchema and FlinkTable validation exceâ¦
## What is the purpose of the change
Currently, the exception message of `TableScheam` and `FlinkTable` a little
confusing,In this PR. we want improve the exception message .
## Brief change log
- *Improve TableSchema column name and column type validation exception
message*
- *Improve TableSchema column name duplicate validation exception message*
- *Improve FlinkTable field name and field type validation exception
message*
- *Improve FlinkTable field name duplicate validation exception message*
## Verifying this change
- This change is verified by the new
`TableSchemaValidationTest#testColumnNameAndColumnTypeNotEqual`
`TableSchemaValidationTest#testColumnNamesDuplicate` and
`FlinkTableValidationTest#testFieldNamesDuplicate`.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (no)
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: ( no)
- The serializers: (no)
- The runtime per-record code paths (performance sensitive): (no)
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
## Documentation
- Does this pull request introduce a new feature? (no)
- If yes, how is the feature documented? (not documented)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sunjincheng121/flink FLINK-7572-PR
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/4640.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #4640
----
commit 555828aa6a257921f52fb87b8ab5f2afff78eee0
Author: sunjincheng121 <[email protected]>
Date: 2017-09-05T00:55:03Z
[FLINK-7572][table]Improve TableSchema and FlinkTable validation exception
message
----
---