GitHub user suez1224 opened a pull request:
https://github.com/apache/flink/pull/4989
[Flink 7003] [Table API & SQL] use PEEK_FIELDS_NO_EXPAND for
CompositeRelDataType
## What is the purpose of the change
This pull request change CompositeRelDataType to use the newly added
StructKind PEEK_FIELDS_NO_EXPAND to disable the flattening behavior when select
star.
## Brief change log
- Change CompositeRelDataType to use StructKind.PEEK_FIELDS_NO_EXPAND.
- added unittests for both stream/batch table/SQL APIs.
## Verifying this change
This change added unittests for both stream/batch table/SQL APIs to verify
the behavior.
## 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
- The S3 file system connector: NO
## Documentation
No
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/suez1224/flink flink-7003
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/4989.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 #4989
----
commit e676cfeb2ecc4ed07960813bf91c7bf2442fe1c2
Author: Shuyi Chen <[email protected]>
Date: 2017-11-09T08:05:20Z
use PEEK_FIELDS_NO_EXPAND for CompositeRelDataType
----
---