Fix PySpark kernel connection change (#12494)

This commit is contained in:
Vasu Bhog
2020-09-18 20:35:25 -05:00
committed by GitHub
parent b05cbe5356
commit 63adfd4d38

View File

@@ -512,7 +512,7 @@ export class AttachToDropdown extends SelectBox {
//Changes kernel based on connection attached to
if (this.model.kernelAliases.includes(connectionProfile.serverCapabilities.notebookKernelAlias)) {
this.model.changeKernel(connectionProfile.serverCapabilities.notebookKernelAlias);
} else {
} else if (this.model.clientSession.kernel.name === 'SQL') {
this.model.changeKernel('SQL');
}
return true;