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

Allow custom return types for AVG/VARIANCE/STDDEV/COVAR

    XMLWordPrintableJSON

Details

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

    Description

      For example, return types of AVG() is the input type. So, if the input is INT/BIGINT type, AVG() is always truncated. Depending on the database, some database follow this behavior while others (e.g. Oracle/MySQL/etc.) do not and return floating point values for AVG().

      Similar for other functions mentioned here.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: