MCPcopy Create free account
hub / github.com/apache/arrow / CheckConversion

Function CheckConversion

cpp/src/arrow/flight/sql/odbc/odbc_impl/util.cc:900–907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898}
899
900std::shared_ptr<Array> CheckConversion(const arrow::Result<Datum>& result) {
901 if (result.ok()) {
902 const Datum& datum = result.ValueOrDie();
903 return datum.make_array();
904 } else {
905 throw DriverException(result.status().message());
906 }
907}
908
909ArrayConvertTask GetConverter(Type::type original_type_id, CDataType target_type) {
910 // The else statement has a convert the works for the most case of array

Callers 1

GetConverterFunction · 0.85

Calls 5

DriverExceptionClass · 0.85
ValueOrDieMethod · 0.80
make_arrayMethod · 0.80
okMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected