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

User-defined aggregate functions with more than one parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.12.0
    • 1.14.0
    • core
    • None

    Description

      Currently user-defined aggregate functions must have one parameter.

      SqlAggFunction need new constructor to set paramTypes to allow user-defined aggregate function to have more than one parameter.

      If a class(A) implement interface of AggregateFunction,that instance of class will be transformed to instance of SqlUserDefinedAggFunction by call toOp method in CalciteCatalogReader.
      when construct the SqlUserDefinedAggFunction instance will set paramTypes to null for super class sqlFunction indirectly.
      The problem is:
      we will get SqlUserDefinedAggFunction paramTypes to sql validatefilte,but it will be filter nothing

      Attachments

        Issue Links

          Activity

            People

              yuemeng yuemeng
              yuemeng yuemeng
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: