Skip to content

RuntimeConfig

Defined in: runtime-config.ts:17

get(key): Promise<string | undefined>;

Defined in: runtime-config.ts:45

Read a configuration entry.

ParameterType
keystring

Promise<string | undefined>

the entry value, or undefined if not set and no default exists on the server.


getAll(prefix?): Promise<Record<string, string>>;

Defined in: runtime-config.ts:61

Return all configuration entries currently set on the session.

ParameterTypeDescription
prefix?stringOptional key prefix filter (e.g. "spark.sql").

Promise<Record<string, string>>


isModifiable(key): Promise<boolean>;

Defined in: runtime-config.ts:78

Return whether a configuration entry can be modified on the running session, or whether it is a static (server-bound) setting.

ParameterType
keystring

Promise<boolean>


set(key, value): Promise<void>;

Defined in: runtime-config.ts:32

Set a Spark configuration entry.

ParameterTypeDescription
keystringConfiguration key (e.g. "spark.sql.shuffle.partitions")
valuestringValue as a string. Numbers and booleans must be stringified.

Promise<void>


unset(key): Promise<void>;

Defined in: runtime-config.ts:52

Remove a configuration entry.

ParameterType
keystring

Promise<void>