Hive
  1. Hive
  2. HIVE-952

Support analytic NTILE function

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: OLAP, Query Processor, UDF
    • Labels:
      None
    • Tags:
      NTILE analytic function RANK DENSE_RANK

      Description

      The NTILE function divides a set of ordered rows into equally sized buckets and assigns a bucket number to each row.
      Useful for calculating tertiles, quartiles, quintiles, etc.

      Example:

      SELECT last_name, salary,
      NTILE(4) OVER (ORDER BY salary DESC) AS quartile
      FROM employees
      WHERE department_id = 100;
      

        Issue Links

          Activity

          Carl Steinbach created issue -
          Carl Steinbach made changes -
          Field Original Value New Value
          Component/s OLAP [ 12317404 ]
          Carl Steinbach made changes -
          Component/s UDF [ 12313585 ]
          Lefty Leverenz made changes -
          Link This issue is superceded by HIVE-896 [ HIVE-896 ]
          Hide
          Lars Francke added a comment -

          This has been fixed in the meantime.

          Show
          Lars Francke added a comment - This has been fixed in the meantime.
          Lars Francke made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Lefty Leverenz made changes -
          Fix Version/s 0.11.0 [ 12323587 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Carl Steinbach
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development