tencent cloud

All product documents
Data Lake Compute
SQL Implicit Conversion
Last updated: 2025-03-07 15:52:30
SQL Implicit Conversion
Last updated: 2025-03-07 15:52:30
To facilitate SQL writing and quickly switch from Hive/Spark syntax to DLC unified SQL, we offer SQL implicit conversion capabilities. The conversion list is as follows:#LF#I: implicit cast, E: explicit cast, --: not allowed.
From-To
null
boolean
tinyint
smallint
int
bigint
decimal
float/real
double
interval
date
time
timestamp
[var]char
[var]binary
null
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
boolean
--
Ι
E
E
E
E
E
E
E
--
--
--
--
Ι
--
tinyint
--
E
Ι
Ι
Ι
Ι
Ι
Ι
Ι
E
--
--
E
Ι
--
smallint
--
E
Ι
Ι
Ι
Ι
Ι
Ι
Ι
E
--
--
E
Ι
--
int
--
E
Ι
Ι
Ι
Ι
Ι
Ι
Ι
E
--
--
E
Ι
--
bigint
--
E
Ι
Ι
Ι
Ι
Ι
Ι
Ι
E
--
--
E
Ι
--
decimal
--
E
Ι
Ι
Ι
Ι
Ι
Ι
Ι
E
--
--
E
Ι
--
float/real
--
E
Ι
Ι
Ι
Ι
Ι
Ι
Ι
--
--
--
E
Ι
--
double
--
E
Ι
Ι
Ι
Ι
Ι
Ι
Ι
--
--
--
E
Ι
--
interval
--
--
E
E
E
E
E
--
--
Ι
--
--
--
E
--
date
--
--
--
--
--
--
--
--
--
--
Ι
--
Ι
Ι
--
time
--
--
--
--
--
--
--
--
--
--
--
Ι
E
Ι
--
timestamp
--
--
E
E
E
E
E
E
E
--
Ι
E
Ι
Ι
--
[var]char
--
E
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
[var]binary
--
--
--
--
--
--
--
--
--
--
E
E
E
Ι
Ι


Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon