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

DM-38507: Supply schema for the new ObsCore columns #109

Merged
merged 2 commits into from Apr 14, 2023
Merged

Conversation

gpdf
Copy link
Collaborator

@gpdf gpdf commented Apr 13, 2023

Also correct some of the existing validation errors.

obs_title is a standard-but-optional column and is planned for use
in labeling images in the Portal display.

lsst_ccdvisitid is a combination of lsst_visit and lsst_detector meant
for use in accelerating JOINs with tables with a "ccdvisitid" column.

Also: switch order of lsst_filter and lsst_visit to a more logical form,
putting filter between the tract-patch columns and the visit-detector
columns, since it applies to both systems.
Add table_index to the "ivoa.ObsCore" table.

Update DP0.1 table indices to avoid the use of '0'.
We're treating this as a reserved value in the validator.
@gpdf gpdf requested a review from fritzm April 13, 2023 20:05
tap:column_index: 225
ivoa:unit:
datatype: char
votable:arraysize: "*"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The underlying SQL type used for the in-place mod was VARCHAR(256) -- do we want votable:arraysize: 256 here to more closely represent that reality?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I'm comfortable with the variable-length declaration. I'm rethinking this more generally.

Copy link
Contributor

@fritzm fritzm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but see question re. obs_title.votable:arraysize?

@gpdf gpdf merged commit d24acf0 into main Apr 14, 2023
2 of 3 checks passed
@gpdf gpdf deleted the tickets/DM-38507 branch April 14, 2023 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants