Executes 'describe formatted' on given table As of now, only populates columns and partitioned columns.
Executes 'describe formatted' on given table As of now, only populates columns and partitioned columns.
JDBC connection
Database name
Table name
DescribeTableOutput
Drops the table.
Drops the table.
JDBC connection
Database name
Table name
IF EXISTS option for DROP query
Maps a JDBC type to a Catalyst type.
Maps a JDBC type to a Catalyst type.
- A field of java.sql.Types
The Catalyst type corresponding to sqlType.
Given a driver string and a JDBC url, load the specified driver and return a DB connection.
Given a driver string and a JDBC url, load the specified driver and return a DB connection.
the class name of the JDBC driver for the given url. If this
is None then spark-redshift
will attempt to automatically
discover the appropriate driver class.
the JDBC url to connect to.
Gets all the column names of specified table
Gets all the column names of specified table
JDBC connection
Database name
Table name
array of column names
Takes a (schema, table) specification and returns the table's Catalyst schema.
Takes a (schema, table) specification and returns the table's Catalyst schema.
A JDBC connection to the database.
The database name.
The table name of the desired table. This may also be a SQL query wrapped in parentheses.
A StructType giving the table's Catalyst schema.
Compute the SQL schema string for the given Spark SQL Schema.
Compute the SQL schema string for the given Spark SQL Schema.
Checks if table exists in database.
Checks if table exists in database.
JDBC connection
Database name
Name of the table for which existence is to be checked
true if table exists in database, false otherwise.
Truncates the table.
Truncates the table.
JDBC connection
Database name
Table name
Unsets table properties.
Unsets table properties.
JDBC connection
Database name
Table name
IF EXISTS option, i.e. UNSET TBLPROPERTIES IF EXISTS...
property keys to unset