A method, apparatus, and an article of manufacture for parallel execution
of SQL operations from within user defined functions. One or more
embodiments of the invention provide the user defined function (UDF) with
a C++ class (hereinafter referred to as "dispatcher") that can take an SQL
query and start parallel execution of the query. The query is optimized
and parallelized. The dispatcher executes the query, sets up the
communication links between the various operators in the query, and
ensures that all the results are sent back to the data-server that
originated the query request. Further, the dispatcher merges the results
of the parallel execution and produces a single stream of tuples that is
fed to the calling UDF. To provide the single stream to the calling UDF,
one or more embodiments of the invention utilize a class that provides the
UDF with a simple and easy-to-use interface to access the results of the
nested SQL execution.
Метод, прибор, и статья изготовления для параллельного исполнения деятельностей sql от внутри потребителя определили функции. One or more воплощения вымысла обеспечивают функцию определенную потребителем (UDF) при тип C++ (hereinafter названный "dispatcher") может принять query sql и начать параллельное исполнение query. Оптимизирован и параллелизирован query. Dispatcher исполняет query, устанавливает вверх каналы связи между различными операторами в query, и обеспечивает что все результаты посланы back to данн-server который возник запрос query. Более потом, dispatcher сливает результаты параллельного исполнения и производит одиночный поток tuples который подан к вызывая UDF. Для того чтобы снабдить одиночный поток вызывая UDF, one or more воплощения вымысла используют тип который обеспечивает UDF с просто и easy-to-use поверхностью стыка для того чтобы достигнуть результатов, котор гнездят исполнения sql.