-
Notifications
You must be signed in to change notification settings - Fork 87
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
Implement migration sequencing (phase 3) #3018
base: migration-sequencing-phase-2
Are you sure you want to change the base?
Implement migration sequencing (phase 3) #3018
Conversation
❌ 117/119 passed, 5 flaky, 2 failed, 8 skipped, 2h55m5s total ❌ test_migrate_managed_table_to_external_table_without_conversion: databricks.sdk.errors.platform.BadRequest: org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Got exception: shaded.databricks.CLOUD_ENVbfs.org.apache.hadoop.fs.CLOUD_ENVbfs.contracts.exceptions.KeyProviderException Failure to initialize configuration for storage account labsCLOUD_ENVTEST_MOUNT_NAME.dfs.core.windows.net: Invalid configuration value detected for fs.CLOUD_ENV.account.key) (3.303s)
❌ test_migrate_managed_table_to_external_table_with_clone: databricks.sdk.errors.platform.BadRequest: org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Got exception: shaded.databricks.CLOUD_ENVbfs.org.apache.hadoop.fs.CLOUD_ENVbfs.contracts.exceptions.KeyProviderException Failure to initialize configuration for storage account labsCLOUD_ENVTEST_MOUNT_NAME.dfs.core.windows.net: Invalid configuration value detected for fs.CLOUD_ENV.account.key) (3.5s)
Flaky tests:
Running from acceptance #7065 |
…-phase-2 # Conflicts: # src/databricks/labs/ucx/assessment/sequencing.py # tests/unit/assessment/test_sequencing.py
…-phase-3 # Conflicts: # tests/unit/assessment/test_sequencing.py
# Conflicts: # src/databricks/labs/ucx/assessment/clusters.py # src/databricks/labs/ucx/assessment/jobs.py
…-phase-2 # Conflicts: # src/databricks/labs/ucx/framework/owners.py
…-phase-3 # Conflicts: # src/databricks/labs/ucx/assessment/sequencing.py
object_type="TABLE", | ||
object_id=used_table.fullname, | ||
object_name=used_table.fullname, | ||
object_owner="", # TODO |
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.
Done in PR #3076
self, | ||
ws: WorkspaceClient, | ||
path_lookup: PathLookup, | ||
admin_locator: AdministratorLocator, |
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.
inject TableOwnership
via constructor, not the AdministratorLocator
.
@@ -15,6 +15,7 @@ | |||
from databricks.labs.lsql.backends import SqlBackend | |||
from databricks.sdk.errors import NotFound | |||
|
|||
from databricks.labs.ucx.source_code.base import UsedTable |
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.
can we invert directionality and rewrite it as UsedTable.to_table()
? src/databricks/labs/ucx/hive_metastore/tables.py
shouldn't depend on the source_code
package to avoid cycles.
3c34640
to
eb79746
Compare
Changes
Implement migration sequencing for used tables
Linked issues
Progresses #1415
Functionality
None
Tests