getTypeInfo
- Last Updated: March 7, 2016
- 1 minute read
- DataDirect Connectors
- JDBC
- Apache Spark SQL 6.0
- Documentation
The following table provides getTypeInfo results for all sources supported by the driver.
TYPE_NAME =
bigint
|
|
TYPE_NAME =
boolean
|
|
TYPE_NAME = date
|
|
|
TYPE_NAME = decimal
|
|
TYPE_NAME =
double
|
|
TYPE_NAME =
float
|
|
TYPE_NAME =
int
|
|
TYPE_NAME =
smallint
|
|
TYPE_NAME = string1,
2
|
|
TYPE_NAME =
timestamp
|
|
TYPE_NAME =
tinyint
|
|
|
TYPE_NAME = varchar3
|
|
1 Maximum of 2
GB
2 If the StringDescribeType
connection property is set to
varchar (the default), the String data type maps
to VARCHAR. If StringDescribeType is set to longvarchar, String maps to
LONGVARCHAR. StringDescribeType affects all columns reported as
String, even columns that were originally cast as Varchar. This
is important to note because the Spark Thrift server, when
returning result metadata for Varchar columns, reports column
type as (12) STRING and precision as 2147483647.3
When returning result set metadata for Varchar columns, the Spark Thrift server reports the column type as (12) STRING and the precision as 2147483647. For the latest information about this issue, refer to the Apache JIRA SPARK-5918 issue Web page.