| 804 | }; |
| 805 | |
| 806 | FOLLY_ALWAYS_INLINE std::string makeErrorMessage( |
| 807 | const BaseVector& input, |
| 808 | vector_size_t row, |
| 809 | const TypePtr& toType) { |
| 810 | return fmt::format( |
| 811 | "Cannot cast {} '{}' to {}.", |
| 812 | input.type()->toString(), |
| 813 | input.toString(row), |
| 814 | toType->toString()); |
| 815 | } |
| 816 | |
| 817 | FOLLY_ALWAYS_INLINE std::exception_ptr makeBadCastException( |
| 818 | const TypePtr& resultType, |