1. A computer-implemented method for managing compilation of a database statement that includes a user-defined table function that requires partitioning of data input to the function, the method comprising: while generating an execution plan for the database statement, determining whether the partitioning of output data from an operation that feeds the function is compatible with the partitioning required by the function; and if partitioning of the output data from the operation that feeds the function is compatible with the partitioning required by the function, then specifying, in the execution plan, execution of both the operation that feeds the function and the function by a same set of processes.