| 101 | } |
| 102 | |
| 103 | static void validateChildType(const LogicalType& type, const std::string& functionName) { |
| 104 | switch (type.getLogicalTypeID()) { |
| 105 | case LogicalTypeID::DOUBLE: |
| 106 | case LogicalTypeID::FLOAT: |
| 107 | return; |
| 108 | default: |
| 109 | throw BinderException( |
| 110 | std::format("{} requires argument type to be FLOAT[] or DOUBLE[].", functionName)); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | static LogicalType validateArrayFunctionParameters(const LogicalType& leftType, |
| 115 | const LogicalType& rightType, const std::string& functionName) { |
no test coverage detected