Files
documentdb/pg_helio_core/include/io
Rajesh Kumar Thandapani a781d0e3fe Merged PR 1299301: Change Stream aggregation stage implementation
### Does this PR have any customer impact?
   No. It does not have any customer impact, since the UDF is not exposed to users in this PR.

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)
   Feature. It introduces infrastructure and an UDF for implementing Change Streams.

### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)
   Change Stream Aggergation stage UDF(change_stream_aggregation) has been added in this PR.

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))
 The release notes for this feature is available here:
 docs/pgmongo/design_docs/data_plane/change_streams/change_stream_release_notes.md

### Description

### Description
This PR implements the change stream aggregation UDF `change_stream_aggregation`
 It adds some unit tests for testing change stream.

# Supported Features
    Currently, the $changeStream aggregation supports only these features:
    1) Watching a collection for the following change events:
        a) INSERT
        b) UPDATE:
            NOTE: UPDATe event always provides the new document after update.
                  The update_description field is not supported yet.
        c) DELETE
    2) Resuming the change stream from a particular event using the "_id" field in the change event
    or the "postBatchResumeToken" field in the change stream cursor.

# Current Limitations:
    1) The following events are not supported:
        a) create
        b) createIndexes
        c) drop
        d) dropDatabase
        e) dropIndexes
        f) invalidate
        g) refineCollectionShardKey
        h) rename
        i) replace: NOTE: this event is published as "UPDATE" currently.
        j) reshardCollection
        k) shardCollection

        NOTE: Expanded Events:
            The above list includes expanded events also. The option "showExpandedEvents" is not supported.

    2) Unsupported change stream pipeline options:
        All the options other than "resumeAfter" is not currently supported, and will result in an error.

        NOTE:  Hisstorical change stream events are not supported "startAtOperationTime"
        So change streams can be created from the current time only.

    3) Change Stream targets:
        Currently, $changestream aggregation can be applied at collection level only. Not at the database/cluster level. But Multiple change streams can be opened on multiple collections.
        But the current default maximum limit on parallel change streams by default is "5".

    4) Support for multi node clusters.
         Change Streams are supported only at the single node clusters.
2024-05-24 10:41:23 +03:00
..
2024-01-12 19:10:20 +00:00
2024-01-12 19:10:20 +00:00
2024-01-12 19:10:20 +00:00