Fix HDFS node to only show up for BDC connections (#12714)

This commit is contained in:
Charles Gagnon
2020-10-02 11:42:56 -07:00
committed by GitHub
parent 6dd7c7d0f0
commit 572310b906
2 changed files with 9 additions and 0 deletions

View File

@@ -48,6 +48,9 @@ export class MssqlObjectExplorerNodeProvider extends ProviderBase implements azd
let sqlConnProfile = await azdata.objectexplorer.getSessionConnectionProfile(session.sessionId);
if (!sqlConnProfile) { return false; }
const isBigDataCluster = await utils.isBigDataCluster(sqlConnProfile.id);
if (!isBigDataCluster) { return false; }
let clusterSession = new SqlClusterSession(session, sqlConnProfile, this.appContext, this);
this.clusterSessionMap.set(session.sessionId, clusterSession);
return true;