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

Disallow NULL/None for implied dimension values in data IDs

    XMLWordPrintable

    Details

      Description

      The Gen3 Registry's implied dimension dependencies (e.g. visit.physical_filter, exposure.visit) are allowed to be None, which translates nicely to NULL in SQL.  Unfortunately SQL NULLs and Python Nones compare differently, and we want the latter behavior in SQL queries.  That means we need to either

      • add special NULL-handling logic to the query-generation code
      • do our own mapping from Python None to sentinal values in all fetch/insert code
      • drop support for None/NULL in implied dimensions and make the associated foreign key columns in the database NOT NULL to support this.

        Attachments

          Issue Links

            Activity

            No work has yet been logged on this issue.

              People

              Assignee:
              jbosch Jim Bosch
              Reporter:
              jbosch Jim Bosch
              Watchers:
              Christopher Waters, Jim Bosch, John Parejko, Tim Jenness
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Jenkins

                  No builds found.