Skip to content

Commit

Permalink
flake proof
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaresma committed Aug 9, 2024
1 parent d625188 commit 3c51743
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion simple_ddl_parser/ddl_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def tokens_not_columns_names(self, t: LexToken) -> LexToken:
t_tag = self.parse_tags_symbols(t)
if t_tag:
return t_tag
if t.value.startswith("ARRAY") :
if t.value.startswith("ARRAY"):
t.type = "ARRAY"
return t
elif self.lexer.is_like:
Expand Down
1 change: 0 additions & 1 deletion simple_ddl_parser/dialects/hql.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def p_expression_location(self, p: List) -> None:
p_list = list(p)
p[0]["location"] = p_list[-1]


def p_expression_clustered(self, p: List) -> None:
"""expr : expr ID ON LP pid RP
| expr ID by_smthg"""
Expand Down
2 changes: 1 addition & 1 deletion simple_ddl_parser/dialects/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def p_multi_id_or_string(self, p: List) -> None:
p[0].append(p_list[-1])
else:
totrim = " ".join(p_list[1:])
p[0] = totrim.replace(' = ','=').replace('= ','')
p[0] = totrim.replace(' = ', '=').replace('= ', '')

def p_fmt_equals(self, p: List) -> None:
"""fmt_equals : id LP multi_id_or_string RP
Expand Down
1 change: 0 additions & 1 deletion simple_ddl_parser/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@
class SimpleDDLParserException(Exception):
""" Base exception in simple ddl parser library """
pass

0 comments on commit 3c51743

Please sign in to comment.