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

Jark Wu closed FLINK-20037.
---------------------------
    Fix Version/s: 1.12.0
       Resolution: Fixed

Fixed in 1.12.0: eeb69fc9694489f200b94f70edcfc52ba0343718

> Fix the Javadoc of TableEnvironment#fromValues(AbstractDataType, Object...)
> ---------------------------------------------------------------------------
>
>                 Key: FLINK-20037
>                 URL: https://issues.apache.org/jira/browse/FLINK-20037
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / API
>    Affects Versions: 1.11.1
>            Reporter: yandufeng
>            Assignee: yandufeng
>            Priority: Trivial
>              Labels: pull-request-available, starter
>             Fix For: 1.12.0
>
>
> there is a comment problem in fromValues(AbstractDataType<?> rowType, 
> Object... values) method of TableEnvironment, i think second column name is 
> "name" not "f1". this is my first issue, if there is a problem, please 
> understand.
> * <p>Examples:
> * <pre>{@code
> * tEnv.fromValues(
> * DataTypes.ROW(
> * DataTypes.FIELD("id", DataTypes.DECIMAL(10, 2)),
> * DataTypes.FIELD("name", DataTypes.STRING())
> * ),
> * row(1, "ABC"),
> * row(2L, "ABCDE")
> * )
> * }</pre>
> * will produce a Table with a schema as follows:
> * <pre>{@code
> * root
> * |-- id: DECIMAL(10, 2)
> * |-- f1: STRING
> * }</pre>



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

Reply via email to