GitHub user fhueske opened a pull request:
https://github.com/apache/flink/pull/4917
[FLINK-7939] [table] Fix Table conversion of DataStream of AtomicType.
## What is the purpose of the change
Fix the conversion of a `DataStream` of an `AtomicType` to a `Table` with
time attributes.
## Brief change log
* Fix index computation for table fields from `AtomicType`
* Fix field type computation for tables from `AtomicType`
## Verifying this change
Added tests to
* `StreamTableEnvironmentTest`
* `TimeAttributesITCase`
## 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
Fix doesn't need documentation.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/fhueske/flink tableAtomicStream
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/4917.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 #4917
----
commit 437eeba6c0d78143a53654517bb4ace47b9bf53a
Author: Fabian Hueske <[email protected]>
Date: 2017-10-28T20:13:23Z
[FLINK-7939] [table] Fix Table conversion of DataStream of AtomicType.
----
---