-
Notifications
You must be signed in to change notification settings - Fork 74
[WIP] Add Local Dashboard for Profiler #2000
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
base: main
Are you sure you want to change the base?
Conversation
✅ 27/27 passed, 2 flaky, 1m39s total Flaky tests:
Running from acceptance #2236 |
dashboard_str = dashboard_str.replace("`PROFILER_SCHEMA`", f"`{schema_name}`") | ||
|
||
# TODO: check if the dashboard exists and unpublish it if it does | ||
# TODO: create a warehouse ID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be taken care during deployment this part assumes that necessary infra is setup already
logging.basicConfig(level=logging.INFO) | ||
logger = logging.getLogger(__name__) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a Comment to say why we are deviating from LSQL deployment, so other reviewers don't block this PR.
|
||
def __init__(self, ws: WorkspaceClient, current_user: User, is_debug: bool = False): | ||
self._ws = ws | ||
self._current_user = current_user |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you don't need this attribute, you can retrive form workspace client
def __init__(self, ws: WorkspaceClient, current_user: User, is_debug: bool = False): | ||
self._ws = ws | ||
self._current_user = current_user | ||
self._dashboard_location = f"/Workspace/Users/{self._current_user}/Lakebridge/Dashboards" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should rely on the blueprint to save the file workspace. It should be inside the .lakebridge
folder
"tasks": [ | ||
NotebookTask( | ||
notebook_path=f"/Workspace/{databricks_user}/Lakebridge/profiler/load_extracted_tables.py", | ||
base_parameters={ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 2 ways we can implement this, have the ingestion job as python package and use a wheel task
Or have the notebook upload and then run the jobs.
I prefer option 1.
assessment.run() | ||
|
||
|
||
@lakebridge.command(is_unauthenticated=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lakebridge.command(is_unauthenticated=False) | |
@lakebridge.command() |
Changes
What does this PR do?
Relevant implementation details
Caveats/things to watch out for when reviewing:
Linked issues
Functionality
databricks labs lakebridge ...
Tests