Add ViewPolicy to AstNode

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Allow extensions to declare a default, custom, or disallowed ViewPolicy via IDL + AstNode vtable. This ticket should also involve changes to the extension sdk and host adapter.

      // ast_node_view_policy.idl 
      MongoExtensionViewPolicy:
         description: Stage-specific rules for view resolution.
         type: string
         values:
            kDefault: "default"
            kCustom: "custom"
            kDisallowed: "disallowed" 
      
      // C API
      typedef struct MongoExtensionAggStageASTNodeVTable {
         /**
           * Returns a MongoExtensionByteView containing the view resolution policy of the 
           * associated aggregation stage. 
          */
          MongoExtensionByteView (*get_view_policy)(const MongoExtensionAggStageAstNode* astNode);
      };
      

            Assignee:
            Unassigned
            Reporter:
            Lynne Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: