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

Fix code example in "Aggregate Functions" section in Table UDF page

Agile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      The markdown file location: flink/docs/dev/table/functions/udfs.md 

      The target url : https://ci.apache.org/projects/flink/flink-docs-master/dev/table/functions/udfs.html#aggregate-functions

       

      The original content:

      SELECT myField, WeightedAvg(value, weight) FROM MyTable GROUP BY myField

       

      The 'value' is a reserved keyword of the flink table module,So the correct usage should to execute in back quotes .

      SELECT myField, WeightedAvg(`value`, weight) FROM MyTable GROUP BY myField

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            RocMarshal RocMarshal
            RocMarshal RocMarshal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment