| 64 | |
| 65 | template <typename FileType, typename ReadType> |
| 66 | static inline void handleOverflow(ColumnVectorBatch& dstBatch, uint64_t idx, bool shouldThrow) { |
| 67 | if (!shouldThrow) { |
| 68 | dstBatch.notNull.data()[idx] = 0; |
| 69 | dstBatch.hasNulls = true; |
| 70 | } else { |
| 71 | std::ostringstream ss; |
| 72 | ss << "Overflow when convert from " << typeid(FileType).name() << " to " |
| 73 | << typeid(ReadType).name(); |
| 74 | throw SchemaEvolutionError(ss.str()); |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | static inline void handleParseFromStringError(ColumnVectorBatch& dstBatch, uint64_t idx, |
| 79 | bool shouldThrow, const std::string& typeName, |
nothing calls this directly
no test coverage detected