Skip to content


SessionConfigSupport is the <> of <> in DataSource V2 that use <> (i.e. options with spark.datasource prefix for the keys in SQLConf).

With SessionConfigSupport, a data source can be configured by additional (session-scoped) configuration options that are specified in <> that extend user-defined options.

[[contract]] [[keyPrefix]] [source, java]

String keyPrefix()

keyPrefix is used when DataSourceV2Utils object is requested to extract session configuration options.

keyPrefix must not be null or an IllegalArgumentException is thrown:

The data source config key prefix can't be null.