| 778 | } |
| 779 | |
| 780 | Result<std::shared_ptr<Table>> DeclarationToTable(Declaration declaration, |
| 781 | bool use_threads, |
| 782 | MemoryPool* memory_pool, |
| 783 | FunctionRegistry* function_registry) { |
| 784 | return ::arrow::internal::RunSynchronously<Future<std::shared_ptr<Table>>>( |
| 785 | [=, declaration = std::move(declaration)](::arrow::internal::Executor* executor) { |
| 786 | return DeclarationToTableImpl( |
| 787 | std::move(declaration), QueryOptionsFromArgs(memory_pool, function_registry), |
| 788 | executor); |
| 789 | }, |
| 790 | use_threads); |
| 791 | } |
| 792 | |
| 793 | Result<std::shared_ptr<Table>> DeclarationToTable(Declaration declaration, |
| 794 | QueryOptions query_options) { |