Skip to content

Commit

Permalink
improved way to getting table_name schema_name parts take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
BuzzCutNorman committed Nov 11, 2022
1 parent d284efa commit 535575f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions singer_sdk/connectors/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,12 +477,9 @@ def table_exists(self, full_table_name: str) -> bool:
Returns:
True if table exists, False if not, None if unsure or undetectable.
"""
# pftn -> Parsed Full Table Name [0] = db, [1] = schema, [2] = table
pftn: tuple = SQLConnector.parse_full_table_name(
self, full_table_name=full_table_name
_, schema_name, table_name = self.parse_full_table_name(
full_table_name=full_table_name
)
table_name: str = pftn[2]
schema_name: str = pftn[1]

return cast(
bool,
Expand Down

0 comments on commit 535575f

Please sign in to comment.