-
Notifications
You must be signed in to change notification settings - Fork 80
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
Return False
when failed to migrate table
#2982
Return False
when failed to migrate table
#2982
Conversation
@FastLee : See the following code that you introduced in PR: ucx/src/databricks/labs/ucx/hive_metastore/table_migration_status.py Lines 121 to 124 in 2209174
The comment contradicts the return statement, should it be |
@nfx and @FastLee : In migrate grants we have: ucx/src/databricks/labs/ucx/hive_metastore/grants.py Lines 740 to 754 in 2209174
I understand we skip some unmappable grants (e.g. READ_METADATA): ucx/src/databricks/labs/ucx/hive_metastore/grants.py Lines 742 to 748 in 2209174
However, should we consider the migration successful when a mappable grant can not be executed? ucx/src/databricks/labs/ucx/hive_metastore/grants.py Lines 750 to 753 in 2209174
I would argue the migration is unsuccessful, thus |
✅ 53/53 passed, 1 flaky, 4 skipped, 1h44m7s total Flaky tests:
Running from acceptance #6854 |
I would argue we have to keep it as True. We may want to consider ACL migration status. |
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
This is a case where the old table is removed. The migration status should be successful. Otherwise we will not be able to migrate views. |
Oke, then I will update the comment as that is not what is says |
b856343
to
1ad44ca
Compare
Return
False
when failed to migrate.