Beispiel #1
0
        public override ScalarValue VisitSummarizeOperator(Kusto.Language.Syntax.SummarizeOperator node)
        {
            ScalarSummarizer scalarSummarizer = new ScalarSummarizer();

            var aggregates = node.Aggregates;

            foreach (var aggregate in aggregates)
            {
                RxKqlScalarValue scalarValue = aggregate.Accept(this) as RxKqlScalarValue;
                scalarSummarizer.Aggregations.Add(scalarValue.Left, scalarValue.Right as AggregationFunction);
            }

            scalarSummarizer.GroupingElements = node.ByClause.Expressions.Accept(this) as ScalarValueList;

            return(scalarSummarizer);
        }
Beispiel #2
0
 public override T VisitSummarizeOperator(Kusto.Language.Syntax.SummarizeOperator node)
 {
     throw new NotImplementedException();
 }