- 
                Notifications
    You must be signed in to change notification settings 
- Fork 77
Profiler CLI #1623
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?
Profiler CLI #1623
Conversation
…into feature/synapse_data_collector
…into feature/synapse_data_collector
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.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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 also add the command to deploy the profiler dashboard
| - name: execute-database-profiler | ||
| description: Profile the source system database | ||
| flags: | ||
| - name: source-tech | 
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.
What's the advantage of having this as optional?
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 can prompt if it is not passed in CLI for interactive operations.
| def _execute(self, platform: str, config_path: str, extractor=None): | ||
| try: | ||
| config_full_path = self._locate_config(config_path) | ||
| config = Profiler.path_modifier(config_full_path) | 
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.
will adjust this, make pathmodifier as class method
        
          
                src/databricks/labs/lakebridge/resources/assessments/synapse/common/connector.py
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | - name: execute-database-profiler | ||
| description: Profile the source system database | ||
| flags: | ||
| - name: source-tech | 
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 can prompt if it is not passed in CLI for interactive operations.
| Codecov Report❌ Patch coverage is  
 Additional details and impacted files@@            Coverage Diff             @@
##             main    #1623      +/-   ##
==========================================
+ Coverage   64.92%   65.85%   +0.93%     
==========================================
  Files          96       96              
  Lines        7908     7934      +26     
  Branches      822      825       +3     
==========================================
+ Hits         5134     5225      +91     
+ Misses       2595     2530      -65     
  Partials      179      179              ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
 | 
| """Deploys a profiler summary as a Databricks dashboard.""" | ||
| ctx = ApplicationContext(w) | ||
| ctx.add_user_agent_extra("cmd", "create-profiler-dashboard") | ||
| ctx.dashboard_manager.create_profiler_summary_dashboard(extract_file, source_tech, catalog_name, schema_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.
Dependent upon the dashboard_manager Class introduced in PR#2000.
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.
@goodwillpunning we need this branch working so I m removing this for now, you stack the changes on top of this PR as stacked PR
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.
LGTM
Changes
What does this PR do?
This introduces the intial version of CLI
Relevant implementation details
Caveats/things to watch out for when reviewing:
Linked issues
Functionality
databricks labs remorph ...Tests