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

SQL doesn't find S20A photo-z catalog #26

Open
dr-guangtou opened this issue Jul 13, 2021 · 0 comments
Open

SQL doesn't find S20A photo-z catalog #26

dr-guangtou opened this issue Jul 13, 2021 · 0 comments
Assignees

Comments

@dr-guangtou
Copy link
Owner

Issue found by Connor Bottrell:

I find that the SQL query tool in unagi doesn’t recognize the s20a_wide.photoz_mizuki table:

import unagi
dr = unagi.hsc.Hsc(dr='dr3', rerun='s20a_wide')
sql_cmd = [
    'SELECT f.object_id, f.ra, f.dec, z.photoz_median',
    'FROM s20a_wide.forced as f',
    'LEFT JOIN s20a_wide.photoz_mizuki as z',
    'ON f.object_id = z.object_id',
    'LIMIT 10'
          ]
sql_cmd = ' '.join(sql_cmd)
print(sql_cmd)
result = dr.sql_query(sql_cmd, from_file=False, verbose=True)

Which gives:

Waiting for query to finish... [Failed]
query error: - Query Error:
relation "s20a_wide.photoz_mizuki" does not exist
LINE 1: ..., z.photoz_median FROM s20a_wide.forced LEFT JOIN s20a_wide....
@dr-guangtou dr-guangtou self-assigned this Jul 13, 2021
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

1 participant