Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1931

Change the return type of RANK, NTILE and other aggregate functions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.14.0
    • core
    • None

    Description

      RANK, NTILE etc. functions should not always return INTEGER. For example, RANK() and PERCENT_RANK() both return INTEGER. For RANK(), it would be better to return BIGINT; for PERCENT_RANK(), we should actually return DOUBLE or FLOAT since it is a percent value. There are other rank functions that should return floating number instead of INTEGER.

      Attachments

        Activity

          People

            julianhyde Julian Hyde
            minjikim MinJi Kim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: