-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] incorrect typing causes incorrect sorting #12
Labels
RSP VO
Science Platform Virtual Observatory Services (TAP etc)
Comments
Thanks for the report, we are investigating which is the offending layer of the sandwich |
Verified that Qserv is returning correctly typed result data to TAP for this query. |
We have rolled out a fix to this. @RoyWilliams please give it a try. |
Looks great! Thank you! |
For the record, fix upstreamed to CADC, h/t @cbanek |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Subtracting two double's should be a double not a char
To Reproduce
SELECT mag_g,mag_r, mag_g-mag_r as color
FROM dp01_dc2_catalogs.object
WHERE CONTAINS(POINT('ICRS', ra, dec),CIRCLE('ICRS', 55, -35, 1))=1
AND (mag_g <21 AND mag_r <21)
Expected behavior
If I click on the sort button in the display, it should sort as doubles, not as chars
Actual behavior
![mag_g-mag_r](https://user-images.githubusercontent.com/8886481/125261149-e82d9400-e2f8-11eb-84f2-8a2f0e1b5058.png)
Seems strange that "color" is a char field.
If I click on the sort button in the display it sorts alphabetically instead of numerically
** Additional context **
However, if I add "ORDER BY color DESC" to my ADQL, then the sorting is correct.
The text was updated successfully, but these errors were encountered: