Techniques for processing relational data with a user-defined function (udf)
AssigneeTeradata US, Inc.
InventorsLihua Yan, Zhenrong Li, Ejaz Haider
Life of this patent
Estimating the term…
Abstract
Techniques for processing relational data with a user-defined function (UDF) are provided. Relational input data being requested by the UDF, from within a relational database system, is intercepted and normalized. The UDF is called with the normalized input data and as the UDF produces output data in response to the normalized input data that output data is captured and normalized. In an embodiment, the normalized output data is used to dynamically update a data model within the relational database for the input data.
Claims20
A method implemented and programmed within a non-transitory computer-readable storage medium and processed by one or more processors, the processors configured to execute the method, comprising:
- acquiring a data model for input data to a user-defined function (UDF), the input data housed in a relational database;
- normalizing the input data;
- initiating the UDF to perform custom-user defined calculations using the normalized data;
- mapping output data produced from the UDF into a normalized output format;
- and
- updating the data model based on the mapped output data in the normalized output format.
A method implemented and programmed within a non-transitory computer-readable storage medium and processed by one or more processors, the processors configured to execute the method, comprising:
- converting input data acquired from a relational database into a normalized data format;
- passing the normalized input data to a user-customized user-defined function (UDF) for processing;
- capturing output data produced by the user-customized UDF;
- and
- translating the output data into the normalized data format for updating the relational database.
A system, comprising:
- one or more processors of a parallel database management system (DBMS) configured with a pre-process user-defined function (UDF) and a post-process UDF, the pre-process UDF and the post-process UDF implemented, programmed, and resides within a non-transitory computer-readable storage medium that execute on the one or more processors;
- wherein the pre-process UDF is configured to intercept calls made to a user-customized UDF to normalize input data being acquired by the user-customized UDF from the DBMS and configured to provide the normalized input data to the user-customized UDF for processing within the DBMS, the post-process UDF configured to intercept output data produced by the user-customized UDF and translate the output data to normalized output data.
Dependencies are inferred from the claim text.