|
@@ -399,7 +399,6 @@ export class DataCatalog {
|
|
|
if (tableEntry.optimizerPopularityForChildrenPromise) {
|
|
if (tableEntry.optimizerPopularityForChildrenPromise) {
|
|
|
const existingPopularEntries = await tableEntry.optimizerPopularityForChildrenPromise;
|
|
const existingPopularEntries = await tableEntry.optimizerPopularityForChildrenPromise;
|
|
|
popularEntries.push(...existingPopularEntries);
|
|
popularEntries.push(...existingPopularEntries);
|
|
|
- resolve();
|
|
|
|
|
} else if (tableEntry.definition && tableEntry.definition.optimizerLoaded) {
|
|
} else if (tableEntry.definition && tableEntry.definition.optimizerLoaded) {
|
|
|
const childPromise = tableEntry.getChildren({ ...options, silenceErrors: true });
|
|
const childPromise = tableEntry.getChildren({ ...options, silenceErrors: true });
|
|
|
cancellablePromises.push(childPromise);
|
|
cancellablePromises.push(childPromise);
|
|
@@ -409,13 +408,13 @@ export class DataCatalog {
|
|
|
popularEntries.push(childEntry);
|
|
popularEntries.push(childEntry);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- resolve();
|
|
|
|
|
} else {
|
|
} else {
|
|
|
pathsToLoad.push(path);
|
|
pathsToLoad.push(path);
|
|
|
}
|
|
}
|
|
|
} catch (err) {
|
|
} catch (err) {
|
|
|
reject(err);
|
|
reject(err);
|
|
|
}
|
|
}
|
|
|
|
|
+ resolve();
|
|
|
});
|
|
});
|
|
|
existingPromises.push(existingPromise);
|
|
existingPromises.push(existingPromise);
|
|
|
});
|
|
});
|