public void TestSignaturesV2_4_X() { RuntimeConfig conf = _spark.Conf(); Assert.True(conf.IsModifiable("spark.sql.streaming.checkpointLocation")); Assert.False(conf.IsModifiable("missingKey")); }
public void TestSignaturesV2_4_X() { RuntimeConfig conf = _spark.Conf(); conf.Set("stringKey", "stringValue"); conf.Set("boolKey", false); conf.Set("longKey", 1234L); Assert.Equal("stringValue", conf.Get("stringKey")); Assert.Equal("false", conf.Get("boolKey")); Assert.Equal("1234", conf.Get("longKey")); conf.Unset("stringKey"); Assert.Equal("defaultValue", conf.Get("stringKey", "defaultValue")); Assert.Equal("false", conf.Get("boolKey", "true")); Assert.True(conf.IsModifiable("spark.sql.streaming.checkpointLocation")); Assert.False(conf.IsModifiable("missingKey")); }