Aggregate UDF Context Structure

The aggregate UDF context structure, a_v3_extfn_aggregate_context, has exactly the same set of callback function pointers as the scalar UDF context structure.

In addition, it has a read/write _user_data pointer just like the scalar UDF context, and a set of read-only data fields that describe the current usage and location. Each unique instance of the UDF within a statement has one aggregate UDF context instance that is passed to each of the functions specified within the aggregate UDF descriptor structure when they are called. The aggregate context structure is defined as:

Aggregate External Function Context: a_v3_extfn_aggregate_context

Method of a_v3_extfn_aggregate_context structure Description
void set_cannot_be_distributed(a_v3_extfn_aggregate_context * cntxt )

Distribution can be disabled at the UDF level, even if distribution criteria are met at the library level. By default, the UDF is assumed to be distributable if the library is distributable. It is the responsibility of the UDF to push the decision to disable distribution to the server.

Related reference
Blob (a_v4_extfn_blob)
Blob Input Stream (a_v4_extfn_blob_istream)