Snowpark Migration Accelerator: Spark SQL Data Types¶
Conversion Table¶
Spark SQL |
Snowflake |
Notes |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Check out note |
|
|
Check out note |
|
|
|
|
|
|
|
|
|
|
|
Notes¶
Note
See the documentation on Spark SQL data types (https://spark.apache.org/docs/latest/sql-ref-datatypes.html#data-types)
Integer types¶
For the conversion of integer data types (LONG
and SHORT
) each one is converted to INTEGER
in Snowflake, because INTEGER
contains the range numbers for both of them.
SparkSQL LONG: -32768 to 32767
SparkSQL SHORT: -9223372036854775808 to 9223372036854775807
Snowflake INTEGER:-99999999999999999999999999999999999999 to +99999999999999999999999999999999999999