Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-3669

Add log to GTStreamAggregateScanner

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • v2.5.2
    • Query Engine
    • None

    Description

      There's no log printing in GTStreamAggregateScanner, and you know nothing about whether you go to this path or not, it's pretty unfriendly for trouble shooting.

      Code in SegmentCubeTupleIterator.

      boolean hasMultiplePartitions = records instanceof SortMergedPartitionResultIterator;
      if (hasMultiplePartitions && context.isStreamAggregateEnabled()) {
          ...
          // input records are ordered, leverage stream aggregator to produce possibly fewer records
          try (GTStreamAggregateScanner aggregator = new GTStreamAggregateScanner(inputScanner, scanRequest)) {
              result = aggregator.valuesIterator(gtDimsIdx, gtMetricsIdx);
          } catch (IOException ioe) {
              // implementation of close method of anonymous IGTScanner is empty, no way throw exception
              throw new IllegalStateException("IOException is not expected here.", ioe);
          }
          return result;
      }
      

      Attachments

        Issue Links

          Activity

            People

              Aron.tao Jiatao Tao
              Aron.tao Jiatao Tao
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: