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

Enforce column-level constraints when using a schema

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.16.0
    • 1.16.0
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: