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

Method parse_cudf_int8

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

returns 0:false if the value was null ... otherwise returns 1:true

Source from the content-addressed store, hash-verified

117
118// returns 0:false if the value was null ... otherwise returns 1:true
119uint8_t mysql_parser::parse_cudf_int8(void *src, size_t col, size_t row, std::vector<int8_t> *v)
120{
121 auto res = (sql::ResultSet*)src;
122 ++col; // mysql count columns starting from 1
123 int32_t raw_data = res->getInt(col);
124 if (res->wasNull()) return 0;
125 int8_t real_data = static_cast<int8_t>(raw_data);
126 (*v)[row] = real_data;
127 return 1;
128}
129
130uint8_t mysql_parser::parse_cudf_int16(void *src, size_t col, size_t row, std::vector<int16_t> *v)
131{

Callers 1

parse_sqlMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected