Open
Description
When trying to use the query
syntax, its not documented (and not obvious to me from looking through the code and test cases), how to request a partial match. i.e. in iquest
I would do;
iquest "%s/%s" "select COLL_NAME, DATA_NAME where DATA_SIZE = '0' AND COLL_NAME like '/seq-dev/illumina/library_merge/%'"
But I am having trouble replicating this in the python client.
To take a simpler example;
>>> query = session.query(Collection.name, DataObject.name).filter(Collection.name >= '/seq-dev/illumina/library_merge/%')
>>> for result in query:
... print('{}/{}'.format(result[Collection.name], result[DataObject.name]))
...
/seq-dev/illumina/library_merge/jc18_test/deletele_mac106229i.cram
/seq-dev/npg/test_file
/seq-dev/npg/19900/19900_8#12.cram
How does one both chain filters together (is it as simple as query = session.query(Collection.name, DataObject.name).filter(X).filter(x)
) and how does one request a partial match as with the %
operator in iquest?
Apologies if I'm missing something obvious.
This will help with the remediation of Issue #3930