|
@@ -2249,7 +2249,10 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, get_ord
|
|
|
return self.activeRisks().noStats && self.activeRisks().noStats.length > 0;
|
|
return self.activeRisks().noStats && self.activeRisks().noStats.length > 0;
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- var createQualifiedIdentifier = function (identifierChain) {
|
|
|
|
|
|
|
+ var createQualifiedIdentifier = function (identifierChain, defaultDatabase) {
|
|
|
|
|
+ if (identifierChain.length === 1) {
|
|
|
|
|
+ return defaultDatabase + '.' + identifierChain[0].name;
|
|
|
|
|
+ }
|
|
|
return $.map(identifierChain, function (identifier) {
|
|
return $.map(identifierChain, function (identifier) {
|
|
|
return identifier.name;
|
|
return identifier.name;
|
|
|
}).join('.').toLowerCase();
|
|
}).join('.').toLowerCase();
|
|
@@ -2334,13 +2337,13 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, get_ord
|
|
|
{}
|
|
{}
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
- var qid = createQualifiedIdentifier(location.identifierChain);
|
|
|
|
|
|
|
+ var qid = createQualifiedIdentifier(location.identifierChain, activeLocations.defaultDatabase);
|
|
|
tableQidIndex[qid] = true;
|
|
tableQidIndex[qid] = true;
|
|
|
if (!activeTableIndex[qid]) {
|
|
if (!activeTableIndex[qid]) {
|
|
|
var tableName = location.identifierChain[location.identifierChain.length - 1].name;
|
|
var tableName = location.identifierChain[location.identifierChain.length - 1].name;
|
|
|
var displayName = database + '.' + tableName;
|
|
var displayName = database + '.' + tableName;
|
|
|
|
|
|
|
|
- activeTableIndex[createQualifiedIdentifier(location.identifierChain)] = new AssistDbEntry(
|
|
|
|
|
|
|
+ activeTableIndex[createQualifiedIdentifier(location.identifierChain, activeLocations.defaultDatabase)] = new AssistDbEntry(
|
|
|
{
|
|
{
|
|
|
name: tableName,
|
|
name: tableName,
|
|
|
type: 'table',
|
|
type: 'table',
|