Skip to content

Commit 975e64d

Browse files
committed
Fixing range join doc
1 parent a0c9ad1 commit 975e64d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/benchmarking/benchmarking.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,14 @@ For counting reads overlapping predefined feature regions the following SQL quer
170170

171171
.. code-block:: sql
172172
173-
SELECT targets.contigName,targets.start,targets.end,count(*) FROM reads JOIN targets
173+
SELECT targets.contig,targets.pos_start,targets.pos_end,count(*) FROM reads JOIN targets
174174
ON (targets.contigName=reads.contigName
175175
AND
176-
CAST(reads.end AS INTEGER)>=CAST(targets.start AS INTEGER)
176+
CAST(reads.pos_end AS INTEGER)>=CAST(targets.pos_start AS INTEGER)
177177
AND
178-
CAST(reads.start AS INTEGER)<=CAST(targets.end AS INTEGER)
178+
CAST(reads.pos_start AS INTEGER)<=CAST(targets.pos_end AS INTEGER)
179179
)
180-
GROUP BY targets.contigName,targets.start,targets.end
180+
GROUP BY targets.contig,targets.pos_start,targets.pos_end
181181
182182
Exactly the same query has been used for both single node and cluster tests.
183183

0 commit comments

Comments
 (0)