| 363 | |
| 364 | template<typename T> |
| 365 | static inline void startListCast(const char* input, uint64_t len, T split, const CSVOption* option, |
| 366 | ValueVector* vector) { |
| 367 | auto validList = option->allowUnbracedList ? |
| 368 | splitPossibleUnbracedList(std::string_view(input, len), split, option) : |
| 369 | splitCStringList(input, len, split, option); |
| 370 | if (!validList) { |
| 371 | throw ConversionException("Cast failed. " + std::string{input, (size_t)len} + |
| 372 | " is not in " + vector->dataType.toString() + " range."); |
| 373 | } |
| 374 | } |
| 375 | |
| 376 | // ---------------------- cast String to Array Helper ------------------------------ // |
| 377 | static void validateNumElementsInArray(uint64_t numElementsRead, const LogicalType& type) { |
no test coverage detected