In MySQL, every non-numeric type will be cast to double type if its used as argument of numeric functions. With this behavior, CastStringAsReal became a common function that TiFlash doesn't support.