Patent ID: 11907223
Assignee: ACTIAN CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A computer-implemented method for executing a compiled user defined function (UDF) in an interpreted database query engine, comprising:
receiving, from an interface, a database query that invokes a UDF defined in an interpreted programming language;
producing a shared library of the UDF at least in part by:
obtaining an object file compiled from the UDF; and
modifying, in a function symbol table in the object file, a binding property and a visibility property of one or more function symbols that correspond to one or more functions to expose the one or more functions in the shared library; and
executing a last compilation step of linking the object file to produce the shared library;

loading, during database runtime, in a memory, and based on detecting the UDF in the database query, the shared library produced by compiling the UDF; and
executing the UDF via the shared library during the invocation of the database query, or another database query, in the interpreted database query engine.