Skip to content

Commit 7ba02e2

Browse files
committed
downgrade sqlite to 3.39.4
due to query plan regression in 3.40.0: https://sqlite.org/forum/forumpost/07b36e3899a9ae21
1 parent 5899f3b commit 7ba02e2

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
FROM centos:7 as builder
55

66
ARG CMAKE_VERSION=3.17.3
7-
ARG SQLITE_VERSION=3400000
7+
ARG SQLITE_VERSION=3390400
88
ARG ZSTD_VERSION=1.5.2
99
ARG CPU_ARCH=ivybridge
1010
ENV CFLAGS="-march=${CPU_ARCH} -O3"

test/genomicsqlite_smoke_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ def main():
129129
results == control_results
130130
), "discrepancy between genomic_range_rowids_sql() and control results"
131131

132+
for expl in dbconn.execute("EXPLAIN " + query):
133+
if expl[1] in {"OpenRead", "OpenPseudo", "Column"}:
134+
print(" " + str(expl))
135+
132136
if gri_constraints != 3:
133137
print("GRI query opcodes:")
134138
for expl in dbconn.execute("EXPLAIN " + query):

test/test_gri.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ def test_indexing():
5656

5757
# The query should be covered by the index except for one final fetch of exons.id
5858
opcodes = list(con.execute("EXPLAIN " + query, ("chr17", 43044294, 43048294)))
59-
# for expl in opcodes:
60-
# if expl[1] in {"OpenRead", "OpenPseudo", "Column"}:
61-
# print(expl)
59+
for expl in opcodes:
60+
if expl[1] in {"OpenRead", "OpenPseudo", "Column"}:
61+
print(expl)
6262
accessed_cursors = list(opcode[2] for opcode in opcodes if opcode[1] == "Column")
6363
table_rootpages = set(
6464
row[0] for row in con.execute("SELECT rootpage FROM sqlite_master WHERE type='table'")

0 commit comments

Comments
 (0)