Пример #1
0
        public override ITable Evaluate(IQueryContext context)
        {
            ITable childTable = Child.Evaluate(context);
            var    dbContext  = (DatabaseQueryContext)context;
            var    funTable   = new FunctionTable((Table)childTable, functionList, nameList, dbContext);

            // If no columns then it is implied the whole table is the group.
            if (columns == null)
            {
                funTable.SetWholeTableAsGroup();
            }
            else
            {
                funTable.CreateGroupMatrix(columns);
            }
            return(funTable.MergeWithReference(groupMaxColumn));
        }