Support reporting referenced and added metadata fields by extensions

XMLWordPrintableJSON

    • Query Integration
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Extension stages must be able to report fields that are referenced and added by the extension.
       

      MongoExtensionLogicalAggregationStage vtable changes
      Function Name Return Type Parameters Description
      get_added_metadata_fields
      • MongoExtensionStatus*
      • MongoExtensionByteBuf** (output)
      Reports metadata fields added to documents by the stage. 

      On success, if metadata fields are added by the stage, the MongoExtensionByteBuf is populated with a serialized BSON containing an array of strings, where each string corresponds to the metadata field that is introduced by the stage.

      Ownership of the MongoExtensionByteBuf is transferred to the host.

      Note, if no metadata fields are added by the stage, the MongoExtensionByteBuf is not allocated.|

      get_referenced_metadata_fields
      • MongoExtensionStatus*
      • MongoExtensionByteBuf** (output)
      Reports metadata fields referenced by the stage. 

      On success, if metadata fields are referenced by the stage, the MongoExtensionByteBuf is populated with a serialized BSON containing an array of strings, where each string corresponds to the metadata field that is referenced by the stage.

      Ownership of the MongoExtensionByteBuf is transferred to the host.

      Note, if no metadata fields are referenced by the stage, the MongoExtensionByteBuf is not allocated.|

            Assignee:
            Unassigned
            Reporter:
            Santiago Roche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: