[
https://issues.apache.org/jira/browse/FLINK-20700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17263188#comment-17263188
]
Timo Walther edited comment on FLINK-20700 at 1/12/21, 9:30 AM:
----------------------------------------------------------------
As linked
[here|https://stackoverflow.com/questions/49594988/array-elements-in-annotations-used-as-single-values],
the curly braces can be omitted.
"If the element value is not an ElementValueArrayInitializer, then an array
value whose sole element is the element value is associated with the element."
I will close this issue for now.
was (Author: twalthr):
As linked
[here|https://stackoverflow.com/questions/49594988/array-elements-in-annotations-used-as-single-values],
the `{` and `}` can be omitted.
"If the element value is not an ElementValueArrayInitializer, then an array
value whose sole element is the element value is associated with the element."
I will close this issue for now.
> Default value type does not match the return type of method input()
> -------------------------------------------------------------------
>
> Key: FLINK-20700
> URL: https://issues.apache.org/jira/browse/FLINK-20700
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / API
> Affects Versions: 1.12.0
> Reporter: ZhangWei
> Priority: Trivial
>
> In org.apache.flink.table.annotation.FunctionHint, the return type of input()
> is an
> array of DataTypeHint, while the default value is @DataTypeHint() which is
> just an object.
> So the method defination should be as below, *{}*should be added.
> DataTypeHint[] input() default \{@DataTypeHint()};
--
This message was sent by Atlassian Jira
(v8.3.4#803005)