Skip to content

Commit

Permalink
small corrections in table_partition creator() method
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavatlan committed Jan 10, 2025
1 parent 8e20c51 commit 6a38247
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
[name, table_qualified_name],
)
assert table_qualified_name # noqa: S101
table_qualified_name
if connection_qualified_name:
connector_name = AtlanConnectorType.get_connector_name(
connection_qualified_name
Expand All @@ -39,7 +38,7 @@
or f"{connection_qualified_name}/{database_name}"
)
schema_qualified_name = (
schema_qualified_name or f"{connection_qualified_name}/{database_name}"
schema_qualified_name or f"{database_qualified_name}/{schema_name}"
)

qualified_name = f"{schema_qualified_name}/{name}"
Expand Down
3 changes: 1 addition & 2 deletions pyatlan/model/assets/core/table_partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@ def creator(
[name, table_qualified_name],
)
assert table_qualified_name # noqa: S101
table_qualified_name
if connection_qualified_name:
connector_name = AtlanConnectorType.get_connector_name(
connection_qualified_name
Expand All @@ -501,7 +500,7 @@ def creator(
or f"{connection_qualified_name}/{database_name}"
)
schema_qualified_name = (
schema_qualified_name or f"{connection_qualified_name}/{database_name}"
schema_qualified_name or f"{database_qualified_name}/{schema_name}"
)

qualified_name = f"{schema_qualified_name}/{name}"
Expand Down

0 comments on commit 6a38247

Please sign in to comment.