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

BUG: ADQL translation fails with GROUP BY <func> #15

Open
agy-why opened this issue Mar 2, 2023 · 1 comment
Open

BUG: ADQL translation fails with GROUP BY <func> #15

agy-why opened this issue Mar 2, 2023 · 1 comment

Comments

@agy-why
Copy link

agy-why commented Mar 2, 2023

This passes with PostgreSQL but fails with ADQL translation

SELECT 
       0.5 + FLOOR(LOG(mass)) AS logmass, 
       COUNT(*) AS num
       
  FROM mdr1.fof 
  
 WHERE snapnum = 85 
 GROUP BY FLOOR(LOG(mass)) 
 ORDER BY logmass
@kimakan
Copy link
Contributor

kimakan commented Mar 19, 2024

AFAIK in ADQL, the group_by_term does not contain the math_function and therefore GROUP BY FLOOR(..) is not a valid ADQL query.

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