-
Notifications
You must be signed in to change notification settings - Fork 90
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
Added column is_partitioned
to ucx.tables and dashboard
#959
Conversation
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.
Please add integration test and more comments.
How this partitioning information should affect the migration process?
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #959 +/- ##
==========================================
+ Coverage 88.45% 88.56% +0.10%
==========================================
Files 47 47
Lines 6211 6103 -108
Branches 1116 1094 -22
==========================================
- Hits 5494 5405 -89
+ Misses 477 463 -14
+ Partials 240 235 -5 ☔ View full report in Codecov by Sentry. |
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
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.
This is a breaking change, add the upgrade script
src/databricks/labs/ucx/upgrades/v0.15.0_add_is_partitioned_column.py
Outdated
Show resolved
Hide resolved
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.
Remove security holes
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.
Remove irrelevant changes
@@ -476,20 +476,28 @@ def run_workflow(self, step: str): | |||
except OperationFailed as err: | |||
# currently we don't have any good message from API, so we have to work around it. | |||
job_run = self._ws.jobs.get_run(job_run_waiter.run_id) | |||
raise self._infer_error_from_job_run(job_run) from err | |||
raise self._infer_nested_error(job_run) from err |
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.
Properly fetch main branch and rebase. This file is irrelevant to this PR.
@@ -264,10 +265,17 @@ def _row_converters(self, execute_response): | |||
type_name = col.type_name | |||
if not type_name: | |||
type_name = ColumnInfoTypeName.NULL | |||
conv = self.type_converters.get(type_name, None) | |||
if type_name == ColumnInfoTypeName.BOOLEAN: |
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.
This is irrelevant
if conv is None: | ||
msg = f"{col.name} has no {type_name.value} converter" | ||
raise ValueError(msg) | ||
col_conv.append(conv) | ||
row_factory = type("Row", (Row,), {"__columns__": col_names}) | ||
return col_conv, row_factory | ||
|
||
@staticmethod | ||
def _convert_boolean_type(value): |
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.
Irrelevant
@@ -0,0 +1,12 @@ | |||
from databricks.labs.blueprint.installation import Installation |
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.
change name to v0.16.0
Changes
Linked issues
Resolves #871
Related PR:
Functionality
databricks labs ucx ...
...
ucx.tables
Tests