Skip to content

Commit

Permalink
and a test (this errored before)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Apr 17, 2024
1 parent 7d8a49e commit 915cc19
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,15 @@ def test_less_function_second_arg(self):
expected = f("((raw_sessions.min_timestamp + toIntervalDay(3)) >= today())")
assert expected == actual

def test_subquery_args(self):
actual = f(
self.inliner.get_inner_where(
parse("SELECT * FROM sessions WHERE true = (select false) and less(today(), min_timestamp)")
)
)
expected = f("((raw_sessions.min_timestamp + toIntervalDay(3)) >= today())")
assert expected == actual

def test_real_example(self):
actual = f(
self.inliner.get_inner_where(
Expand Down

0 comments on commit 915cc19

Please sign in to comment.