I am trying to use the method savetable in the Spark JdbcUtils
The defination of the method is the following. It accepts the JDBCOptions as one of the parameter.
def saveTable( df: DataFrame, tableSchema: Option[StructType], isCaseSensitive: Boolean, options: JDBCOptions) Following is the class of the JDBCOptions
While i am initializing the JDBCOptions with the url,transaction isolation level etc it is throwing errors.
Can you provide insights in initialization of the JDBCOptions
val options :JDBCOptions = Map("url" -> "JDBCUrl") Error Type Map doesnt conform to be JDBCOption Type How to initialize with correct type ?