Result Set Apply Functions

Result set apply is a function because it returns apply results as result set. The result set definition is generated along with the function as a database TYPE object. The result set contains all attributes that are produced by the apply function; the output could vary due to supplemental attributes and model types. You must manage the lifetime of the generated TYPE object; for example, you must delete it when the function is deleted.

The apply result set is defined as follows:

CREATE TYPE apply_result AS OBJECT(
    dmr$case_id   NUMBER,
    prediction    NUMBER,
    probability   NUMBER,
    cost          NUMBER,
    node          VARCHAR2(32767));

The result set apply functions are