Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-21832

lsst.obs.base.FilterDefinition should raise if abstract_filter is not set

    XMLWordPrintable

    Details

    • Story Points:
      1
    • Team:
      Data Release Production
    • Urgent?:
      No

      Description

      Gen3 calib production for latiss fails due to empty SQL results due to missing entries in the `abstract_filter` table.  The query contains "... AND raw.abstract_filter = abstract_filter.name", which is always false when both sides are NULL.

      The fast solution is to alter `obs_lsst`/filters.py to have abstract_filter="UNKNOWN" entries.  The correct solution probably is to force `obs_base` to require those entries when calling FilterDefinition.

        Attachments

          Issue Links

            Activity

            No builds found.
            czw Christopher Waters created issue -
            swinbank John Swinbank made changes -
            Field Original Value New Value
            Team Data Release Production [ 10301 ]
            Hide
            jbosch Jim Bosch added a comment -

            I think I'd prefer to fix this so we can actually use None/NULL to represent missing filters.  That would mean that we instead need to change the query generation logic to handle NULLs explicitly.  This is of course a very reasonable workaround in the meantime, and I have no objection to merging it.

            Show
            jbosch Jim Bosch added a comment - I think I'd prefer to fix this so we can actually use None/NULL to represent missing filters.  That would mean that we instead need to change the query generation logic to handle NULLs explicitly.  This is of course a very reasonable workaround in the meantime, and I have no objection to merging it.
            jbosch Jim Bosch made changes -
            Link This issue relates to DM-21840 [ DM-21840 ]
            jbosch Jim Bosch made changes -
            Labels gen3-middleware
            Hide
            jbosch Jim Bosch added a comment -

            I've just created a separate ticket for changing the query logic (DM-21840), so anyone should feel free to use this to implement the "fast solution" described above in the meantime as a workaround.

            Show
            jbosch Jim Bosch added a comment - I've just created a separate ticket for changing the query logic ( DM-21840 ), so anyone should feel free to use this to implement the "fast solution" described above in the meantime as a workaround.
            jbosch Jim Bosch made changes -
            Labels gen3-middleware gen2-deprecation-blocker gen3-middleware
            tjenness Tim Jenness made changes -
            Story Points 1
            Urgent? off
            gruendl Robert Gruendl [X] (Inactive) made changes -
            Remote Link This issue links to "Page (Confluence)" [ 25778 ]
            krzys Krzysztof Findeisen made changes -
            Labels gen2-deprecation-blocker gen3-middleware filter-remake gen2-deprecation-blocker gen3-middleware
            Hide
            Parejkoj John Parejko added a comment -

            I noticed this while searching for something else and wanted to chime in that "band" (previously "abstract_filter") is explicitly not required for every Filter. Not all filters have a well defined abstract band label.

            Show
            Parejkoj John Parejko added a comment - I noticed this while searching for something else and wanted to chime in that "band" (previously "abstract_filter") is explicitly not required for every Filter. Not all filters have a well defined abstract band label.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              czw Christopher Waters
              Watchers:
              Andrés Alejandro Plazas Malagón, Christopher Waters, Jim Bosch, John Parejko, Nate Lust
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:

                  Jenkins

                  No builds found.