JDBCOptions — JDBC Data Source Options
JDBCOptions
represents the options of the JDBC data source.
Option / Key | Default Value | Description | ||
---|---|---|---|---|
|
|
The minimum value is Used exclusively when |
||
|
Used exclusively when |
|||
|
Empty string |
Used exclusively when |
||
|
(undefined) |
Specifies the custom data types of the read schema (that is used at load time)
Used exclusively when |
||
|
Used when:
|
|||
|
Used exclusively when
After the JDBC driver class was registered, the driver class is used exclusively when |
|||
|
|
Hint to the JDBC driver as to the number of rows that should be fetched from the database when more rows are needed for The minimum value is Used exclusively when |
||
|
|
Used exclusively when |
||
|
Lower bound of partition column Used exclusively when |
|||
|
Used when:
|
|||
|
Name of the column used to partition dataset (using a Used exclusively when When defined, the lowerBound, upperBound and numPartitions options are also required. When undefined, lowerBound and upperBound have to be undefined. |
|||
|
|
(used only for writing) Enables table truncation Used exclusively when |
||
|
A generic SQL statement (or PL/SQL block) executed before reading a table/query Used exclusively when |
|||
|
Upper bound of the partition column Used exclusively when |
|||
|
Note
|
The options are case-insensitive. |
JDBCOptions
is created when:
-
DataFrameReader
is requested to load data from an external table using JDBC (and create aDataFrame
to represent the process of loading the data) -
JdbcRelationProvider
is requested to create aBaseRelation
(as a RelationProvider for loading and a CreatableRelationProvider for writing)
Creating JDBCOptions Instance
JDBCOptions
takes the following when created:
The input URL
and table are set as the current url and dbtable options (overriding the values in the input parameters if defined).
Converting Parameters (Options) to Java Properties — asProperties
Property
1 2 3 4 5 |
asProperties: Properties |
asProperties
…FIXME
Note
|
|
asConnectionProperties
Property
1 2 3 4 5 |
asConnectionProperties: Properties |
asConnectionProperties
…FIXME
Note
|
asConnectionProperties is used exclusively when JdbcUtils is requested to createConnectionFactory
|