Skip to content

Commit

Permalink
QA checks fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavatlan committed Jan 10, 2025
1 parent 5ee9002 commit 8e20c51
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
connection_qn, connector_name = AtlanConnectorType.get_connector_name(
table_qualified_name, "table_qualified_name", 6
)

fields = table_qualified_name.split("/")

connection_qualified_name = connection_qualified_name or connection_qn
database_name = database_name or fields[3]
schema_name = schema_name or fields[4]
Expand All @@ -39,8 +39,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"{connection_qualified_name}/{database_name}"
)

qualified_name = f"{schema_qualified_name}/{name}"
Expand All @@ -56,4 +55,4 @@
connection_qualified_name=connection_qualified_name,
table_name=table_name,
table_qualified_name=table_qualified_name,
)
)
7 changes: 3 additions & 4 deletions pyatlan/model/assets/core/table_partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,9 @@ def creator(
connection_qn, connector_name = AtlanConnectorType.get_connector_name(
table_qualified_name, "table_qualified_name", 6
)

fields = table_qualified_name.split("/")

connection_qualified_name = connection_qualified_name or connection_qn
database_name = database_name or fields[3]
schema_name = schema_name or fields[4]
Expand All @@ -501,8 +501,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"{connection_qualified_name}/{database_name}"
)

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

0 comments on commit 8e20c51

Please sign in to comment.