-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from lsst-sqre/tickets/DM-35246
[DM-35246] Add more query annotations to TAP queries
- Loading branch information
Showing
15 changed files
with
20 additions
and
15 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
SELECT 'monkey', * | ||
SELECT 'monkey', 'cone-object', * | ||
FROM dp01_dc2_catalogs.object | ||
WHERE CONTAINS(POINT('ICRS', ra, dec), CIRCLE('ICRS', {{ ra }}, {{ dec }}, {{ radius }}))=1 |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
SELECT 'monkey', * | ||
SELECT 'monkey', 'cone-photometry', * | ||
FROM dp01_dc2_catalogs.forced_photometry | ||
WHERE CONTAINS(POINT('ICRS', coord_ra, coord_dec), CIRCLE('ICRS', {{ ra }}, {{ dec }}, {{ radius }}))=1 |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
SELECT 'monkey', * | ||
SELECT 'monkey', 'cone-position', * | ||
FROM dp01_dc2_catalogs.position | ||
WHERE CONTAINS(POINT('ICRS', coord_ra, coord_dec), CIRCLE('ICRS', {{ ra }}, {{ dec }}, {{ radius }}))=1 |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
SELECT COUNT(*), FLOOR(LOG10(i_base_PsfFlux_instFlux)) as BIN | ||
SELECT 'monkey', 'histogram-flux', | ||
COUNT(*), FLOOR(LOG10(i_base_PsfFlux_instFlux)) as BIN | ||
FROM dp01_dc2_catalogs.forced_photometry | ||
GROUP BY BIN | ||
ORDER BY BIN |
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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
SELECT 'monkey', * | ||
SELECT 'monkey', 'object-one', * | ||
FROM dp01_dc2_catalogs.object | ||
WHERE objectId = {{ object }} |
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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
SELECT 'monkey', * | ||
SELECT 'monkey', 'object-several', * | ||
FROM dp01_dc2_catalogs.object | ||
WHERE objectId IN ({{ objects }}) |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
SELECT 'monkey', * | ||
SELECT 'monkey', 'polygon-object', * | ||
FROM dp01_dc2_catalogs.object | ||
WHERE CONTAINS(POINT('ICRS', ra, dec), POLYGON('ICRS', {{ polygon }}))=1 |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
SELECT 'monkey', * | ||
SELECT 'monkey', 'polygon-position', * | ||
FROM dp01_dc2_catalogs.position | ||
WHERE CONTAINS(POINT('ICRS', coord_ra, coord_dec), POLYGON('ICRS', {{ polygon }}))=1 |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SELECT 'monkey', objectId, coord_ra, coord_dec, i_base_PsfFlux_instFlux | ||
SELECT 'monkey', 'scan-flux', | ||
objectId, coord_ra, coord_dec, i_base_PsfFlux_instFlux | ||
FROM dp01_dc2_catalogs.forced_photometry | ||
WHERE i_base_PsfFlux_instFlux BETWEEN {{ min_flux }} AND {{ max_flux }} |
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
SELECT TOP 12 'monkey', objectId, ra, dec, extendedness, mag_r, magerr_r, good | ||
SELECT TOP 12 'monkey', 'scan-top', | ||
objectId, ra, dec, extendedness, mag_r, magerr_r, good | ||
FROM dp01_dc2_catalogs.object | ||
WHERE extendedness = 0 AND mag_r < 24 | ||
ORDER by mag_r DESC |