Skip to content

Commit

Permalink
Update diff.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Sep 27, 2024
1 parent c68fbee commit fc43d04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lea/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ def get_schema_diff(
origin_columns = origin_client.list_columns()[["table_reference", "column"]]
target_columns = target_client.list_columns()[["table_reference", "column"]]

if origin_columns.empty:
return pd.DataFrame(columns=["table_reference", "column", "diff_kind"])

# HACK: remove the username
origin_columns["table_reference"] = origin_columns["table_reference"].apply(
lambda x: x.split(".", 1)[1]
Expand Down

0 comments on commit fc43d04

Please sign in to comment.