User defined function classification in analytical data processing systems
AssigneeHewlett Packard Enterprise Development LP
InventorMuthian George
Life of this patent
Estimating the term…
Abstract
Systems and apparatuses are provided for integrating user defined functions into an analytical data processing framework. The system includes a plurality of user defined functions (28), each having metadata defining an associated class type. A query compiler (22) identifies a call to a user defined function (28) within a query of an associated data table (26), retrieves the associated class type of the user defined function from the metadata, and provides a query plan according to a plurality of processing instructions derived from the retrieved class type.
Claims13
An analytical data processing system comprising:
- a non-transitory computer readable medium storing machine readable instructions, the machine readable instructions comprising:
- a plurality of user defined functions, each having metadata defining an associated class type, where a given class type is associated with a plural set of user defined functions;
- and
- a query compiler configured to:
- identify a call to a given user defined function of the plurality of user defined functions within a query of an associated data table,
- retrieve the associated class type of the user defined function from the metadata of the user defined function,
- provide a query plan according to a plurality of processing instructions derived from the retrieved class type, where the plurality of processing instructions derived from the class type includes an instruction to determine:
- an associated output cardinality of the user defined function, and
- whether the user defined function can be processed in an online analytics processing window,
- where the output cardinality indicates whether the given user defined function produces, from a given set of input rows, an indeterminate number of output rows, a single output row, or a determinate, known number of output rows comprising at least two output rows, and
- validate the query according to the associated class type of the user defined function such that only the user defined function configured to be processed in the online analytical window are designated to be processed in an online analytical window;
- and
- a processor operatively connected to the non-transitory computer readable medium and configured to execute the machine readable instructions.
A non-transitory computer readable medium comprising:
- a query parser configured to identify calls to a plurality of user defined functions within a query of an associated data table and retrieve associated class types of the user defined functions from metadata associated with the user defined functions, where a given class type is associated with a plural set of user defined functions;
- a query optimizer configured to provide a query plan according to a plurality of processing instructions derived from the retrieved function class types, the processing instructions for each class type including at least an instruction to determine whether functions associated with the class type can be processed in an online analytics processing window, and whether the functions associated with the class type have an indeterminate output cardinality, and reject the query associated with the query plan if more than one user defined function in the query has an indeterminate output cardinality;
- and
- a processing engine configured to process the query plan to execute an analytic function represented by the user defined function.
An analytical data processing system comprising:
- a non-transitory computer readable medium storing machine readable instructions, the machine readable instructions comprising:
- a plurality of user defined functions, each having metadata defining an associated class type, where a given class type is associated with a plural set of the plurality of user defined functions;
- and
- a query compiler configured to:
- identify a call to a user defined function within a query of an associated data table,
- retrieve the associated class type of the user defined function from the metadata of the user defined function,
- validate the query according to the associated class type of the user defined function, such that only user defined functions belonging to a class type configured to be processed in an online analytics processing window are designated to be processed in an online analytical window,
- determine an associated cardinality of the user defined function from the associated class type, and whether the user defined function can be processed in an online analytics processing window, where the cardinality of the function indicating if a number of rows output by the function is known or unknown at the time the query is validated given the number of input rows, and
- provide a query plan according to the determined cardinality;
- and
- a processor operatively connected to the non-transitory computer readable medium and configured to execute the machine readable instructions.
Dependencies are inferred from the claim text.