Skip to content

Commit

Permalink
fix(snowflake): ensure that laterals joins with newlines are also rew…
Browse files Browse the repository at this point in the history
…ritten
  • Loading branch information
cpcloud committed Aug 12, 2023
1 parent 81bba2e commit dfd3c9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibis/backends/snowflake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ def compile_join(element, compiler, **kw):
result = compiler.visit_join(element, **kw)

if element.right._is_lateral:
return re.sub(r"^(.+) ON true$", r"\1", result, flags=re.IGNORECASE)
return re.sub(r"^(.+) ON true$", r"\1", result, flags=re.IGNORECASE | re.DOTALL)
return result


Expand Down

0 comments on commit dfd3c9b

Please sign in to comment.