JDBCConnectorOptions
Additional connection options for the connector.
Contents
- DataTypeMapping
-
Custom data type mapping that builds a mapping from a JDBC data type to an AWS Glue data type. For example, the option
"dataTypeMapping":{"FLOAT":"STRING"}
maps data fields of JDBC typeFLOAT
into the JavaString
type by calling theResultSet.getString()
method of the driver, and uses it to build the AWS Glue record. TheResultSet
object is implemented by each driver, so the behavior is specific to the driver you use. Refer to the documentation for your JDBC driver to understand how the driver performs the conversions.Type: String to string map
Valid Keys:
ARRAY | BIGINT | BINARY | BIT | BLOB | BOOLEAN | CHAR | CLOB | DATALINK | DATE | DECIMAL | DISTINCT | DOUBLE | FLOAT | INTEGER | JAVA_OBJECT | LONGNVARCHAR | LONGVARBINARY | LONGVARCHAR | NCHAR | NCLOB | NULL | NUMERIC | NVARCHAR | OTHER | REAL | REF | REF_CURSOR | ROWID | SMALLINT | SQLXML | STRUCT | TIME | TIME_WITH_TIMEZONE | TIMESTAMP | TIMESTAMP_WITH_TIMEZONE | TINYINT | VARBINARY | VARCHAR
Valid Values:
DATE | STRING | TIMESTAMP | INT | FLOAT | LONG | BIGDECIMAL | BYTE | SHORT | DOUBLE
Required: No
- FilterPredicate
-
Extra condition clause to filter data from source. For example:
BillingCity='Mountain View'
When using a query instead of a table name, you should validate that the query works with the specified
filterPredicate
.Type: String
Pattern:
([\u0009\u000B\u000C\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF])*
Required: No
- JobBookmarkKeys
-
The name of the job bookmark keys on which to sort.
Type: Array of strings
Pattern:
([\u0009\u000B\u000C\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF])*
Required: No
- JobBookmarkKeysSortOrder
-
Specifies an ascending or descending sort order.
Type: String
Pattern:
([\u0009\u000B\u000C\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF])*
Required: No
- LowerBound
-
The minimum value of
partitionColumn
that is used to decide partition stride.Type: Long
Valid Range: Minimum value of 0.
Required: No
- NumPartitions
-
The number of partitions. This value, along with
lowerBound
(inclusive) andupperBound
(exclusive), form partition strides for generatedWHERE
clause expressions that are used to split thepartitionColumn
.Type: Long
Valid Range: Minimum value of 0.
Required: No
- PartitionColumn
-
The name of an integer column that is used for partitioning. This option works only when it's included with
lowerBound
,upperBound
, andnumPartitions
. This option works the same way as in the Spark SQL JDBC reader.Type: String
Pattern:
([\u0009\u000B\u000C\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF])*
Required: No
- UpperBound
-
The maximum value of
partitionColumn
that is used to decide partition stride.Type: Long
Valid Range: Minimum value of 0.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: