Skip to content

Commit

Permalink
fix: teradata warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tobymao committed Jun 15, 2024
1 parent fb4d908 commit a739741
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sqlglot/dialects/teradata.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,14 @@ def _parse_rangen(self):

return self.expression(exp.RangeN, this=this, expressions=expressions, each=each)

def _parse_index_params(self) -> exp.IndexParameters:
this = super()._parse_index_params()

if this.args.get("on"):
this.set("on", None)
self._retreat(self._index - 2)
return this

class Generator(generator.Generator):
LIMIT_IS_TOP = True
JOIN_HINTS = False
Expand Down

0 comments on commit a739741

Please sign in to comment.