Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-20700

Default value type does not match the return type of method input()

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Won't Fix
    • Affects Version/s: 1.12.0
    • Fix Version/s: None
    • Component/s: Table SQL / API
    • Labels:
      None

      Description

      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()};

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Amon ZhangWei

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment