from lsst.rsp import get_tap_service
service = get_tap_service("tap")
service.search(
f"SELECT * FROM dp1.CcdVisit LIMIT 100"
)
Fails with DALQueryError: Query timeout exceeded for synchronous execution. The job has been aborted. Please use /async endpoint for long-running queries.. Async queries on the other hand keep going without finishing the job. Any idea when we will get online again? Thank you.
I’ve had another look at this – I can see the associated translated queries executing successfully in our backend Qserv database, but there appears to be some issue in our TAP service layered above or in the plumbing in between… Interestingly, I can get the query to execute successfully all the way through for a smaller search radius (although the query radius as you have written it is certainly reasonable and should be working!)
I’ll flag some folks working with the higher-level services to take a look, but unfortunately support is somewhat thin today do to the national US holiday.
This is more for @fritzm and our RSP developer team trying to diagnose the issue than advice for you, @deppep, because using SELECT * shouldn’t be a problem on the CcdVisit table, but – I did some testing and found that the same query statement but with specific columns selected (as below) runs as an async query in about 3 seconds, but swap in SELECT * and it’s still executing after 6m.
query = """SELECT ra, dec, band, expTime, visitId, obsStartMJD FROM dp1.CcdVisit
WHERE CONTAINS(POINT('ICRS', ra, dec),
CIRCLE('ICRS', 53.160, -28.100, 1.00)) = 1
AND band IN ('g', 'r', 'i') ORDER BY obsStartMJD"""