mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Fixed can't read indexof exception when no big data cluster connection and switch to PySpark3 (#3413)
This commit is contained in:
@@ -281,9 +281,14 @@ export class NotebookModel extends Disposable implements INotebookModel {
|
|||||||
notebookManager: this.notebookManager,
|
notebookManager: this.notebookManager,
|
||||||
notificationService: this.notebookOptions.notificationService
|
notificationService: this.notebookOptions.notificationService
|
||||||
});
|
});
|
||||||
let id: string = this.connectionProfile ? this.connectionProfile.id : undefined;
|
let profile = this.connectionProfile as IConnectionProfile;
|
||||||
|
|
||||||
|
if (this.isValidKnoxConnection(profile)) {
|
||||||
|
this._hadoopConnection = new NotebookConnection(this.connectionProfile);
|
||||||
|
} else {
|
||||||
|
this._hadoopConnection = undefined;
|
||||||
|
}
|
||||||
|
|
||||||
this._hadoopConnection = this.connectionProfile ? new NotebookConnection(this.connectionProfile) : undefined;
|
|
||||||
this._clientSession.initialize(this._hadoopConnection);
|
this._clientSession.initialize(this._hadoopConnection);
|
||||||
this._sessionLoadFinished = this._clientSession.ready.then(async () => {
|
this._sessionLoadFinished = this._clientSession.ready.then(async () => {
|
||||||
if (this._clientSession.isInErrorState) {
|
if (this._clientSession.isInErrorState) {
|
||||||
|
|||||||
Reference in New Issue
Block a user