Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: daf_butler
-
Labels:
-
Story Points:1
-
Epic Link:
-
Team:Data Release Production
-
Urgent?:No
Description
While poking around to try to come up with some test data for DM-38592, I attempted this query:
butler.registry.queryDataIds(
|
["tract", "patch", "visit", "detector", "htm7"],
|
skymap="hsc_rings_v1",
|
instrument="HSC",
|
where="htm7 IN (htm_ids)",
|
bind={"htm_ids": [231828, 231829]},
|
).expanded()
|
and got this:
ProgrammingError: (psycopg2.errors.DuplicateAlias) table name "patch_skypix_overlap" specified more than once
|
Andy Salnikov, here's one more small review request, for SQL-generation bugfix in the query system:
https://github.com/lsst/daf_butler/pull/834
It's basically a guard against joining in the same subquery multiple times.