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

yandufeng updated FLINK-20037:
------------------------------
    Description: 
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>

  was:
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.
{quote}* <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>
*
* <p>For more examples see \{@link #fromValues(Object...)}.{quote}


> there is a comment problem in fromValues(AbstractDataType<?> rowType, 
> Object... values)  method of TableEnvironment
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-20037
>                 URL: https://issues.apache.org/jira/browse/FLINK-20037
>             Project: Flink
>          Issue Type: Improvement
>          Components: API / Core
>    Affects Versions: 1.11.1
>            Reporter: yandufeng
>            Priority: Trivial
>              Labels: starter
>
> 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