1. A computer-readable medium containing instructions to configure a processor to perform a method, the method comprising: generating a calculation plan including a plurality of nodes; determining whether at least one of the nodes includes a function node; and compiling the function node into executable code to enable execution of the plurality of nodes including the function node at the database.