Skip to content

Conversation

@goodwillpunning
Copy link
Contributor

@goodwillpunning goodwillpunning commented Aug 18, 2025

Changes

Simplify the prompts for the Azure Synapse Assessment CLI.

What does this PR do?

Relevant implementation details

The serverless SQL endpoint, dedicated SQL endpoint, and development endpoint follow a predicatable and repeatable pattern based on the name of an Azure Synapse workspace name. The formats are as follows:

  • Serverless SQL Endpoint: <workspace_name>-ondemand.sql.azuresynapse.net
  • Dedicated SQL Endpoint: <workspace_name>.sql.azuresynapse.net
  • Development Endpont: https://<workspace_name>.dev.azuresynapse.net

Since these values can be automatically derived from the workspace name, the user only needs to be prompted to enter the name of the workspace they would like to profile. This PR removes the 3 redundant prompts.

Caveats/things to watch out for when reviewing:

Linked issues

N/A

Functionality

  • added relevant user documentation
  • added new CLI command
  • modified existing command: databricks labs lakebridge ...
  • updated existing Assessment CLI

Tests

  • manually tested
  • updated existing unit tests
  • added integration tests

azure_api_access = {
"development_endpoint": self.prompts.question("Enter development endpoint"),
"development_endpoint": f"https://{synapse_workspace['name']}.dev.azuresynapse.net",
"azure_client_id": self.prompts.question("Enter Azure client ID"),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I m also thinking of removing client id and rather have them az login? thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to this idea. For users who choose to generate a token via az login, it makes this prompt ineffective

"Enter the ODBC driver installed locally", default="ODBC Driver 18 for SQL Server"
),
}
synapse_workspace["dedicated_sql_endpoint"] = f"{synapse_workspace['name']}.sql.azuresynapse.net"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

@github-actions
Copy link

✅ 23/23 passed, 1 flaky, 1m40s total

Flaky tests:

  • 🤪 test_transpiles_informatica_with_sparksql (10.45s)

Running from acceptance #1994

@gueniai
Copy link
Collaborator

gueniai commented Oct 1, 2025

Covered in #1981

@gueniai gueniai closed this Oct 1, 2025
github-merge-queue bot pushed a commit that referenced this pull request Oct 6, 2025
…ssessment (#1981)

<!-- REMOVE IRRELEVANT COMMENTS BEFORE CREATING A PULL REQUEST -->
## Changes
<!-- Summary of your changes that are easy to understand. Add
screenshots when necessary, they're helpful to illustrate the before and
after state -->
### What does this PR do?
- Introduces a new feature to establish a base configurator for Profiler
Assessment within the project.

### Relevant implementation details

- Adds foundational logic for configurable Profiler Assessments.
- Updates or adds new CLI commands to support configuration.
- Modifies existing command: `databricks labs lakebridge
configure-database-profiler`
- Merges changes from PR #1940, co-authored by @goodwillpunning.

### Caveats/things to watch out for when reviewing:

### Linked issues
<!-- DOC: Link issue with a keyword: close, closes, closed, fix, fixes,
fixed, resolve, resolves, resolved. See
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
-->

Resolves #..

### Functionality

- [ ] added relevant user documentation
- [x] added new CLI command
- [ ] modified existing command: `databricks labs lakebridge ...`
- [ ] ... +add your own

### Tests
<!-- How is this tested? Please see the checklist below and also
describe any other relevant tests -->

- [x] manually tested
- [ ] added unit tests
- [ ] added integration tests

---------

Co-authored-by: Guenia Izquierdo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat/profiler Issues related to profilers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants