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

INFORMATION_SCHEMA.COLUMNS is missing <interval_qualifier> info

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 1.2.0
    • Component/s: Metadata
    • Labels:
      None

      Description

      The INFORMATION_SCHEMA.COLUMNS table does not have all data from the <interval_qualifier> of an INTERVAL type descriptor.

      In particular, it does not have enough information to implement DatabaseMetaData.getColumns()'s COLUMN_SIZE or DECIMAL_DIGITS columns for INTERVAL types.

      1. It does not have the starting and ending units, so we can't distinguish between INTERVAL HOUR TO MINUTE and INTERVAL HOUR TO SECOND--which have different lengths (COLUMN_SIZE) because their string representations have different fields.

      2. It does not have the fractional seconds precision.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dsbos Daniel Barclay
                Reporter:
                dsbos Daniel Barclay
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: