Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-514

To support aggregation in the distributed version

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      The current aggregation cannot satisfy the needs in the distributed version, to be specific, there are two points that should be satisfied:
      1. The FirstValueAggrResult and LastValueAggrResult should also contain timestamp.
      Without a timestamp, the coordinator node cannot tell the result from which node is the true first/last.
      2. An AggrResult should be able to merge with another. When we get AggrResults from all nodes that participate in the query, these results should be merged to generate a new result.

      To resolve the issue, you should:
      1. Add a field `timestamp` in FirstValueAggrResult and LastValueAggrResult
      2. Add an abstract method `merge(AggregateResult another)` in AggregateResult and implement it properly.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            zhangyuxin Yuxin Zhang
            jt2594838 Tian Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m

                Slack

                  Issue deployment