[
https://issues.apache.org/jira/browse/FLINK-18672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated FLINK-18672:
-----------------------------------
Labels: pull-request-available (was: )
> Fix Scala code examples for UDF type inference annotations
> ----------------------------------------------------------
>
> Key: FLINK-18672
> URL: https://issues.apache.org/jira/browse/FLINK-18672
> Project: Flink
> Issue Type: Bug
> Components: Documentation, Table SQL / API
> Reporter: Fabian Hueske
> Assignee: Timo Walther
> Priority: Major
> Labels: pull-request-available
>
> The Scala code examples for the [UDF type inference
> annotations|https://ci.apache.org/projects/flink/flink-docs-release-1.11/dev/table/functions/udfs.html#type-inference]
> are not correct.
> For example: the following {{FunctionHint}} annotation
> {code:scala}
> @FunctionHint(
> input = Array(@DataTypeHint("INT"), @DataTypeHint("INT")),
> output = @DataTypeHint("INT")
> )
> {code}
> needs to be changed to
> {code:scala}
> @FunctionHint(
> input = Array(new DataTypeHint("INT"), new DataTypeHint("INT")),
> output = new DataTypeHint("INT")
> )
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)