Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-1304

add row_sequence UDF

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.7.0
    • UDF
    • None
    • Reviewed

    Description

      This is a poor man's answer to the standard analytic function row_number(); it assigns a sequence of numbers to rows, starting from 1.

      I'm calling it row_sequence() to distinguish it from the real analytic function, so that once we add support for those, there won't be any conflict with the existing UDF.

      The problem with this UDF approach is that there are no guarantees about ordering in SQL processing internals, so use with caution.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--HIVE-1304.1.patch
          9 kB
          John Sichi
        2. HIVE-1304.2.patch
          9 kB
          John Sichi
        3. HIVE-1304.3.patch
          12 kB
          John Sichi

        Issue Links

        Activity

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

          People

            jvs John Sichi Assign to me
            jvs John Sichi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment