-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add some bam sqllogictests (#187)
* tests: add some bam sqllogictests * test: add sam tests
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
control substitution on | ||
|
||
statement ok | ||
CREATE EXTERNAL TABLE bam STORED AS BAM LOCATION '$CARGO_MANIFEST_DIR/test-data/datasources/bam/test.bam'; | ||
|
||
query T | ||
SELECT name, flag, reference, start, end, mapping_quality, cigar, mate_reference FROM bam LIMIT 1; | ||
---- | ||
READ_ID 83 chr1 12203704 12217173 NULL 55M13394N21M chr1 | ||
|
||
query T | ||
SELECT sequence FROM bam LIMIT 1; | ||
---- | ||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | ||
|
||
query T | ||
SELECT quality_score FROM bam LIMIT 1; | ||
---- | ||
8DCCCC?::>CDDB<<>@3CCDBD@DBDFHHHFEIIGCAIIHIF@@DDGGEBEGEIHGGGDGG?BHHHDFFFF@@< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
control substitution on | ||
|
||
statement ok | ||
CREATE EXTERNAL TABLE sam STORED AS SAM LOCATION '$CARGO_MANIFEST_DIR/test-data/datasources/sam/test.sam'; | ||
|
||
query T | ||
SELECT name, flag, reference, start, end, mapping_quality, cigar, mate_reference FROM sam LIMIT 1; | ||
---- | ||
ref1_grp1_p001 99 ref1 1 10 0 10M ref1 | ||
|
||
query T | ||
SELECT sequence FROM sam LIMIT 1; | ||
---- | ||
CGAGCTCGGT | ||
|
||
query T | ||
SELECT quality_score FROM sam LIMIT 1; | ||
---- | ||
!!!!!!!!!! | ||
|
||
statement ok | ||
DROP TABLE sam; |