Fabian Hueske created FLINK-18672:
-------------------------------------
Summary: 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
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)