Skip to content

Commit

Permalink
HCK-7338: RE: fix error on RE when UC is disabled (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii4as authored Jul 24, 2024
1 parent e8b4827 commit fb58cc0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion reverse_engineering/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,12 @@ module.exports = {
}
const unityTags = isUnityCatalogEnabled
? await unityTagsHelper.getNormalizedUnityTags(connectionData, logger)
: {};
: {
catalogTags: [],
schemaTags: [],
tableTags: [],
columnTags: [],
};

progress({
message: 'Start getting data from entities',
Expand Down
7 changes: 6 additions & 1 deletion reverse_engineering/helpers/unityTagsHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ const getNormalizedUnityTags = async (connectionInfo, logger) => {
const levels = Object.keys(rawUnityTags);

if (!levels?.length) {
return {};
return {
catalogTags: [],
schemaTags: [],
tableTags: [],
columnTags: [],
};
}

return levels.reduce((builtTags, currentLevel) => {
Expand Down

0 comments on commit fb58cc0

Please sign in to comment.