[
https://issues.apache.org/jira/browse/FLINK-20037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jark Wu updated FLINK-20037:
----------------------------
Summary: Fix the Javadoc of TableEnvironment#fromValues(AbstractDataType,
Object...) (was: there is a comment problem in fromValues(AbstractDataType<?>
rowType, Object... values) method of TableEnvironment)
> 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
>
> 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)