Skip to content

Commit

Permalink
Fixing range join doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mwiewior committed Feb 19, 2022
1 parent f01656e commit 82a24dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/source/benchmarking/benchmarking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,14 @@ For counting reads overlapping predefined feature regions the following SQL quer

.. code-block:: sql
SELECT targets.contigName,targets.start,targets.end,count(*) FROM reads JOIN targets
SELECT targets.contig,targets.pos_start,targets.pos_end,count(*) FROM reads JOIN targets
ON (targets.contigName=reads.contigName
AND
CAST(reads.end AS INTEGER)>=CAST(targets.start AS INTEGER)
CAST(reads.pos_end AS INTEGER)>=CAST(targets.pos_start AS INTEGER)
AND
CAST(reads.start AS INTEGER)<=CAST(targets.end AS INTEGER)
CAST(reads.pos_start AS INTEGER)<=CAST(targets.pos_end AS INTEGER)
)
GROUP BY targets.contigName,targets.start,targets.end
GROUP BY targets.contig,targets.pos_start,targets.pos_end
Exactly the same query has been used for both single node and cluster tests.

Expand Down

0 comments on commit 82a24dc

Please sign in to comment.