在 Spark-2.1.0 以后支持的 Options 如下:
--------- JDBC’s options ---------
user
password
url
dbtable
driver
partitionColumn
lowerBound
upperBound
numPartitions
fetchsize
truncate
createTableOptions
batchsize
isolationLevel
--------- CSV’s options ---------
path
sep
delimiter
mode
encoding
charset
quote
escape
comment
header
inferSchema
ignoreLeadingWhiteSpace
ignoreTrailingWhiteSpace
nullValue
nanValue
positiveInf
negativeInf
compression
codec
dateFormat
timestampFormat
maxColumns
maxCharsPerColumn
escapeQuotes
quoteAll
--------- JSON’s options ---------
path
samplingRatio
primitivesAsString
prefersDecimal
allowComments
allowUnquotedFieldNames
allowSingleQuotes
allowNumericLeadingZeros