MCPcopy Create free account
hub / github.com/BlazingDB/blazingsql / parse_cudf_float32

Method parse_cudf_float32

engine/src/io/data_parser/sql/MySQLParser.cpp:203–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203uint8_t mysql_parser::parse_cudf_float32(void *src, size_t col, size_t row, std::vector<float> *v)
204{
205 auto res = (sql::ResultSet*)src;
206 ++col; // mysql count columns starting from 1
207 long double raw_data = res->getDouble(col);
208 if (res->wasNull()) return 0;
209 float real_data = static_cast<float>(raw_data);
210 (*v)[row] = real_data;
211 return 1;
212}
213
214uint8_t mysql_parser::parse_cudf_float64(void *src, size_t col, size_t row, std::vector<double> *v)
215{

Callers 1

parse_sqlMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected