Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
joocer committed Nov 7, 2023
1 parent 1b4c5f5 commit 04021cd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/storage/test_cache_in_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_cache_in_subqueries():
# read the data once, this should populate the cache
conn = opteryx.connect()
cur = conn.cursor()
cur.execute("SELECT * FROM (SELECT * FROM testdata.flat.tweets WITH(NO_PARTITION));")
cur.execute("SELECT * FROM (SELECT * FROM testdata.flat.tweets WITH(NO_PARTITION)) AS SQ;")
cur.arrow()

stats = cur.stats
Expand All @@ -72,7 +72,7 @@ def test_cache_in_subqueries():
# read the data a second time, this should hit the cache
conn = opteryx.connect()
cur = conn.cursor()
cur.execute("SELECT * FROM (SELECT * FROM testdata.flat.tweets WITH(NO_PARTITION));")
cur.execute("SELECT * FROM (SELECT * FROM testdata.flat.tweets WITH(NO_PARTITION)) AS SQ;")
cur.arrow()

stats = cur.stats
Expand All @@ -83,7 +83,9 @@ def test_cache_in_subqueries():
# read the data with the no cache directive
conn = opteryx.connect()
cur = conn.cursor()
cur.execute("SELECT * FROM (SELECT * FROM testdata.flat.tweets WITH(NO_CACHE, NO_PARTITION));")
cur.execute(
"SELECT * FROM (SELECT * FROM testdata.flat.tweets WITH(NO_CACHE, NO_PARTITION)) AS SQ;"
)
cur.arrow()

stats = cur.stats
Expand Down

0 comments on commit 04021cd

Please sign in to comment.