Currently, the read-only analysis engine supports most of MySQL's type functions, but there are still limitations and incompatibilities in certain scenarios. This document introduces the list of supported type functions in the read-only analysis engine, and enumerates type restrictions on input parameters. Input parameters and functions not mentioned in the document are not supported.
The main type conversion function is the CAST function.
Note:
If there are different types of values for comparison or calculation in a SQL expression, implicit conversion will be triggered. All implicit conversion logic that occurs during usage is subject to the conversion support shown in the table below. If there are operation scenarios such as comparing or calculating any value which does not support implicit conversion, an error message will be displayed, indicating that such conversion is not supported.
Syntax: CAST (expression AS data_type)
The detailed type conversion support in the read-only analysis engine is shown in the table below. Any type conversion not marked in the table is not supported.
|
Bigint | ✓ | ✓ | × | × | ✓ | ✓ | × | ✓ | ✓ | × | ✓ | × |
Binary | ✓ | × | × | × | ✓ | ✓ | × | ✓ | ✓ | × | ✓ | × |
Date | ✓ | × | ✓ | ✓ | × | × | × | × | × | ✓ | × | × |
Datetime | ✓ | × | ✓ | ✓ | × | × | × | × | × | ✓ | × | × |
Decimal | ✓ | ✓ | × | × | ✓ | ✓ | × | ✓ | ✓ | × | ✓ | × |
Double | ✓ | ✓ | × | × | ✓ | ✓ | × | ✓ | × | × | × | × |
Float | ✓ | ✓ | × | × | ✓ | × | ✓ | ✓ | ✓ | × | ✓ | × |
Real | ✓ | ✓ | × | × | ✓ | ✓ | × | ✓ | × | × | × | × |
Signed | ✓ | ✓ | × | × | ✓ | ✓ | × | ✓ | ✓ | × | ✓ | × |
Time | × | × | × | × | × | × | × | × | × | × | × | × |
Unsigned | ✓ | ✓ | × | × | ✓ | ✓ | × | ✓ | ✓ | × | ✓ | × |
Year | ✓ | ✓ | × | × | ✓ | ✓ | × | ✓ | ✓ | × | ✓ | × |
Varchar | ✓ | ✓ | × | × | ✓ | ✓ | × | ✓ | ✓ | × | ✓ | × |
Was this page helpful?