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

User-defined aggregate functions with more than one parameter

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.12.0
    • Fix Version/s: 1.14.0
    • Component/s: core
    • Labels:
      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

            • Assignee:
              yuemeng yuemeng
              Reporter:
              yuemeng yuemeng

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment