Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-7143

Enforce column-level constraints when using a schema

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.16.0
    • Fix Version/s: 1.16.0
    • Component/s: None
    • Labels:

      Description

      The recently added schema framework enforces schema constraints at the table level. We now wish to add additional constraints at the column level.

      • If a column is marked as "strict", then the reader will use the exact type and mode from the column schema, or fail if it is not possible to do so.
      • If a column is marked as required, and provides a default value, then that value is used instead of 0 if a row is missing a value for that column.

      This PR may also contain other fixes the the base functional revealed through additional testing.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Paul.Rogers Paul Rogers
                Reporter:
                Paul.Rogers Paul Rogers
                Reviewer:
                Arina Ielchiieva
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: