MCPcopy Create free account
hub / github.com/apache/orc / handleOverflow

Function handleOverflow

c++/src/ConvertColumnReader.cc:66–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45

Tested by

no test coverage detected