Details
-
Improvement
-
Status: In Progress
-
Minor
-
Resolution: Unresolved
-
1.34.0
-
None
Description
CONVERT function in MySQL has two usage:
- convert(s USING transcodingName): as described in CALCITE-5664
- convert(value, type): equivalent to CAST function that converts value to specific type.
Here are some examples:
- convert(150, CHAR)
- convert(now(), DATE)
- convert('9.5', DECIMAL(10, 2))
- convert(15, SIGNED)
- convert(-2, UNSIGNED)
Noted: for CONVERT or CAST function in MySQL, they only support converting to some specific data types(binary、char、date、time、datetime、decimal、signed、unsigned. Moreover, the last two aren't JDBC sql Types).
Attachments
Issue Links
- is related to
-
CALCITE-5346 Support for type aliases
- Open
-
CALCITE-5548 Add support for MSSQL CONVERT function
- Closed
-
CALCITE-5664 Support CONVERT function with "USING" keyword
- Closed
- links to