Type Definition Bytes
tidb_query_datatype::codec::data_type
type Bytes = Vec<u8>;
impl AsMySQLBool for Bytes
fn as_mysql_bool(&self, context: &mut EvalContext) -> Result<bool>
Evaluates into a MySQL logic value.
impl ConvertTo<Decimal> for Bytes
fn convert(&self, ctx: &mut EvalContext) -> Result<Decimal>
Converts the given value to T value
T
impl ConvertTo<f64> for Bytes
fn convert(&self, ctx: &mut EvalContext) -> Result<f64>
impl EvaluableRet for Bytes
const EVAL_TYPE: EvalType
type ChunkedType = ChunkedVecBytes
fn cast_chunk_into_vector_value(vec: ChunkedVecBytes) -> VectorValue
Converts a vector of this concrete type into a VectorValue in the same type; panics if the varient mismatches. Read more
VectorValue
impl ToInt for Bytes
fn to_int(&self, ctx: &mut EvalContext, tp: FieldTypeTp) -> Result<i64>
Converts the given value to an i64
i64
fn to_uint(&self, ctx: &mut EvalContext, tp: FieldTypeTp) -> Result<u64>
Converts the given value to an u64
u64