| 142 | } |
| 143 | |
| 144 | arrow::Result<std::shared_ptr<FunctionRegistry>> MakeDefaultFunctionRegistry() { |
| 145 | auto registry = std::make_shared<FunctionRegistry>(); |
| 146 | for (const auto& funcs : |
| 147 | {GetArithmeticFunctionRegistry(), GetDateTimeFunctionRegistry(), |
| 148 | GetHashFunctionRegistry(), GetMathOpsFunctionRegistry(), |
| 149 | GetStringFunctionRegistry(), GetDateTimeArithmeticFunctionRegistry()}) { |
| 150 | for (const auto& func_signature : funcs) { |
| 151 | ARROW_RETURN_NOT_OK(registry->Add(func_signature)); |
| 152 | } |
| 153 | } |
| 154 | return registry; |
| 155 | } |
| 156 | |
| 157 | std::shared_ptr<FunctionRegistry> default_function_registry() { |
| 158 | static auto default_registry = *MakeDefaultFunctionRegistry(); |
no test coverage detected