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

[WIP] add command for migrating views #1232

Conversation

ericvergnaud
Copy link
Contributor

Changes

add a command for migrating views
factorize code

Linked issues

Resolves #1172

Functionality

  • added relevant user documentation
  • added new CLI command
  • modified existing command: databricks labs ucx ...
  • added a new workflow
  • modified existing workflow: ...
  • added a new table
  • modified existing table: ...

Tests

  • manually tested
  • added unit tests
  • added integration tests
  • verified on staging environment (screenshot attached)

Missing integration tests
Depends on #1177

@ericvergnaud ericvergnaud requested review from a team and JCZuurmond April 3, 2024 10:17
Copy link
Contributor

@qziyuan qziyuan left a comment

Choose a reason for hiding this comment

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

Hi @ericvergnaud could you take a look at and double check this issue #1273? I think the old _migrate_view_table function is creating UC view with old HMS dependencies.

@ericvergnaud
Copy link
Contributor Author

@qziyuan sure - I've asked @nfx how I should prioritize

Copy link
Member

@JCZuurmond JCZuurmond left a comment

Choose a reason for hiding this comment

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

Your changes LGTM. However, there was a problem already that should be addressed first, see the comment above.

cluster_locations = {}
if ws.config.is_azure:
locations = ExternalLocations(ws, sql_backend, cfg.inventory_database)
azure_client = AzureAPIClient(
Copy link
Member

Choose a reason for hiding this comment

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

See message in Slack from @nfx about these calls only existing from the cli not within a job

@nfx nfx added pr/do-not-merge this pull request is not ready to merge and removed pr/do-not-merge this pull request is not ready to merge labels Apr 6, 2024
Copy link

codecov bot commented Apr 11, 2024

Codecov Report

Attention: Patch coverage is 90.90909% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 90.19%. Comparing base (b2a11cf) to head (edd117b).
Report is 41 commits behind head on main.

Files Patch % Lines
src/databricks/labs/ucx/runtime.py 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1232      +/-   ##
==========================================
+ Coverage   90.02%   90.19%   +0.16%     
==========================================
  Files          62       62              
  Lines        7430     7709     +279     
  Branches     1335     1387      +52     
==========================================
+ Hits         6689     6953     +264     
- Misses        470      483      +13     
- Partials      271      273       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nfx
Copy link
Collaborator

nfx commented Apr 11, 2024

closing in favor of #1325

@nfx nfx closed this Apr 11, 2024
@ericvergnaud ericvergnaud deleted the add-command-for-migrating-views branch April 11, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE]: Migrate views correctly
4 participants