Skip to content

Commit

Permalink
lint things
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaresma committed Aug 30, 2024
1 parent 060deb2 commit efe6ce2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions simple_ddl_parser/dialects/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,9 @@ def p_recursive_pid(self, p: List) -> None:
| id LP id LP recursive_pid RP AS recursive_pid RP
"""
p_list = list(p)
items = [ item if isinstance(item,str) else ",".join(item) for item in p_list[1:]]
items = [item if isinstance(item, str) else ",".join(item) for item in p_list[1:]]
p[0] = "".join(items)


def p_as_virtual(self, p: List):
"""as_virtual : AS LP id RP
| AS LP recursive_pid RP
Expand Down
2 changes: 1 addition & 1 deletion simple_ddl_parser/dialects/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,7 @@ def p_pid(self, p: List) -> None:
| id LP RP
| pid COMMA id
| pid COMMA STRING
"""
"""
p_list = list(p)

if len(p_list) == 4 and isinstance(p[1], str):
Expand Down

0 comments on commit efe6ce2

Please sign in to comment.