Skip to content

Commit

Permalink
chore(flink): fix regex digit escape
Browse files Browse the repository at this point in the history
This might not be sufficient for all regexes, but now sqlgot now stores
unescaped strings and then escapes them during generation, which for the
`Flink(Hive)` case meant doubling up backslashes on `\\d`
  • Loading branch information
gforsyth committed Apr 12, 2024
1 parent e4cb150 commit 92eef73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ibis/backends/sql/dialects.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ def new_name(names: set[str], name: str) -> str:


class Flink(Hive):
UNESCAPED_SEQUENCES = {"\\\\d": "\\d"}

class Generator(Hive.Generator):
UNNEST_WITH_ORDINALITY = False

Expand Down

0 comments on commit 92eef73

Please sign in to comment.