Skip to content

Commit a8c804d

Browse files
committed
Remove Record data class and table creation
1 parent c6b3e55 commit a8c804d

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/databricks/labs/ucx/progress/install.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import datetime as dt
22
import logging
3-
from dataclasses import dataclass
43

54
from databricks.labs.lsql.backends import Dataclass, SqlBackend
65
from databricks.sdk.errors import InternalError
@@ -12,20 +11,6 @@
1211
logger = logging.getLogger(__name__)
1312

1413

15-
@dataclass
16-
class Record:
17-
workspace_id: int # The workspace id
18-
run_id: int # The workflow run id that crawled the objects
19-
run_start_time: dt.datetime # The workflow run timestamp that crawled the objects
20-
object_type: str # The object type, e.g. TABLE, VIEW. Forms a composite key together with object_id
21-
object_id: str # The object id, e.g. hive_metastore.database.table. Forms a composite key together with object_id
22-
object_data: str # The object data; the attributes of the corresponding ucx data class, e.g. table name, table ...
23-
failures: list # The failures indicating the object is not UC compatible
24-
owner: str # The object owner
25-
ucx_version: str # The ucx semantic version
26-
snapshot_id: int # An identifier for the snapshot
27-
28-
2914
class HistoryInstallation:
3015
"""Install resources for UCX's artifacts history.
3116
@@ -40,7 +25,6 @@ def __init__(self, sql_backend: SqlBackend, ucx_catalog: str) -> None:
4025

4126
def run(self) -> None:
4227
self._create_schema()
43-
self._create_table("records", Record)
4428
logger.info("Installation completed successfully!")
4529

4630
@retried(on=[InternalError], timeout=dt.timedelta(minutes=1))

tests/unit/test_cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,6 @@ def test_create_ucx_catalog_creates_history_schema_and_table(ws, mock_backend) -
900900
create_ucx_catalog(ws, prompts, ctx=WorkspaceContext(ws).replace(sql_backend=mock_backend))
901901

902902
assert "CREATE SCHEMA" in mock_backend.queries[0]
903-
assert "CREATE TABLE" in mock_backend.queries[1]
904903

905904

906905
@pytest.mark.parametrize("run_as_collection", [False, True])

0 commit comments

Comments
 (0)