Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Zhang <[email protected]>
  • Loading branch information
kevjumba committed Jul 26, 2022
1 parent 70c7c24 commit 30117ec
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ def get_table_query_string(self) -> str:
"""Returns a string that can directly be used to reference this table in SQL"""
if self.table:
# Backticks make sure that spark sql knows this a table reference.
# return f"`{self.table}`"
table = '.'.join(map(lambda x: f'`{x}`', self.table.split('.')))
table = ".".join([f"`{x}`" for x in self.table.split(".")])
return table
if self.query:
return f"({self.query})"
Expand Down

0 comments on commit 30117ec

Please sign in to comment.