Skip to content
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

INTERVAL function does not detect the appropriate types in joins with temp tables #82

Open
andamian opened this issue Sep 23, 2019 · 1 comment

Comments

@andamian
Copy link
Contributor

INTERVAL(tmp.start, tmp.end) complains about types being [Column, Column] when in fact they are doubles in a temporary table:

pyvo.dal.exceptions.DALQueryError: IllegalArgumentException: Interval bounds must be double, found: Column,Column

Replacing the start and end columns in the temporary table with an interval column fixes the problem.

Cross referenced:
http://rt.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/Ticket/Display.html?id=76104

@pdowler
Copy link
Member

pdowler commented Jan 4, 2024

there are other issues with interval vs interval queries (specifically multi-interval like the interval.samples used in CAOM) when using an interval column from a temp table... probably doesn't give the correct result. That is the origin of only allowing INTERVAL(double,double) in ADQL.

TBD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants