| 52 | |
| 53 | template <typename Type, typename T> |
| 54 | std::shared_ptr<Array> _MakeArray(const std::shared_ptr<DataType>& type, |
| 55 | const std::vector<T>& values, |
| 56 | const std::vector<bool>& is_valid) { |
| 57 | std::shared_ptr<Array> result; |
| 58 | if (is_valid.size() > 0) { |
| 59 | ArrayFromVector<Type, T>(type, is_valid, values, &result); |
| 60 | } else { |
| 61 | ArrayFromVector<Type, T>(type, values, &result); |
| 62 | } |
| 63 | return result; |
| 64 | } |
| 65 | |
| 66 | inline std::string CompareOperatorToFunctionName(CompareOperator op) { |
| 67 | static std::string function_names[] = { |