Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: estimates_report run fails on non uc enabled workspaces #1112

Closed
1 task done
Tracked by #1528
rkkalluri opened this issue Mar 25, 2024 · 9 comments
Closed
1 task done
Tracked by #1528

[BUG]: estimates_report run fails on non uc enabled workspaces #1112

rkkalluri opened this issue Mar 25, 2024 · 9 comments
Assignees
Labels
feat/viz vizualizing UCX progress as a redash/lakeview dashboard

Comments

@rkkalluri
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Looks like this is a new task added to UCX assessment and it fails when workspace is not uc enabled

Expected Behavior

UCX assessment is mostly run before a metastore is assigned in general cases. We should provide an option to make this optional or skip it if workspace is not uc enabled.

Steps To Reproduce

No response

Cloud

Azure

Operating System

Windows

Version

latest via Databricks CLI

Relevant log output

No response

@nfx
Copy link
Collaborator

nfx commented Mar 25, 2024

@rkkalluri insufficient information. need logs to further diagnose.

@mohanab-db
Copy link
Contributor

@nfx I have also seen the same issue. The assessment task estimates_report fails if a metastore is not assigned to the workspace. This task is refreshing a dashboard 'UCX] UCX Assessment (Estimates)'. Only one query fails.
SELECT case when CURRENT_METASTORE() is not null then "Metastore already assigned" else "Metastore not assigned" end as uc_metastore_assigned
That's because the inbuilt function CURRENT_METASTORE() (instead of returning null, which the code is expecting) throws an error if a metastore is not assigned.
[OPERATION_REQUIRES_UNITY_CATALOG] Operation CURRENT_METASTORE requires Unity Catalog enabled.
SQL file path - /ucx/src/databricks/labs/ucx/queries/assessment/estimates/00_2_is_metastore_assigned.sql
image

@qziyuan
Copy link
Contributor

qziyuan commented Apr 10, 2024

There is not a good solution for a DBSQL query to tell if the workspace is UC enabled or not. For now we have to bear with this error, but the document should be improved to notice this behavior.

@qziyuan qziyuan added this to UCX Apr 10, 2024
@github-project-automation github-project-automation bot moved this to Triage in UCX Apr 10, 2024
@nfx nfx added feat/viz vizualizing UCX progress as a redash/lakeview dashboard and removed needs-triage labels Apr 22, 2024
@nfx nfx moved this from Triage to Active Backlog in UCX Apr 22, 2024
@nfx nfx removed this from UCX Apr 24, 2024
@nfx
Copy link
Collaborator

nfx commented May 7, 2024

@ericvergnaud nouc-workspace is labs-azure-admin (via labs CLI)

@rkkalluri
Copy link
Author

rkkalluri commented May 7, 2024 via email

@ericvergnaud
Copy link
Contributor

@rkkalluri I'm looking to fix this issue, but there seems to be quite a gap between this thread and the latest code since the above problematic query is no longer available in the code base. I'm wondering if this bug might already be fixed ? Can you check ?

@ericvergnaud
Copy link
Contributor

@rkkalluri any update ? Or should we close this issue ?

@rkkalluri
Copy link
Author

rkkalluri commented May 27, 2024 via email

@ericvergnaud
Copy link
Contributor

Thanks @rkkalluri

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat/viz vizualizing UCX progress as a redash/lakeview dashboard
Projects
None yet
Development

No branches or pull requests

5 participants