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

SQL parser seems to ignore specified <fractional seconds precision>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • Future
    • SQL Parser
    • None

    Description

      Drill's SQL parser and/or type processing seem to ignore the fractional seconds precision value specified in a <fractional seconds precision> for a datetime or interval type.

      In one case, a type descriptor of TIME(5) yields a RelDataType whose getFullTypeString() returns "TIME(0)".

      In another, a type descriptor of "INTERVAL HOUR TO SECOND(3)" yields a RelDataType whose getFullTypeString() returns "INTERVAL HOUR TO SECOND". Additionally, calling .getIntervalQualifier().getFractionalSecondPrecision( DrillRelDataTypeSystem.DRILL_REL_DATATYPE_SYSTEM ) yields 6 (a default value?) instead of 3.

      (This behavior was seen in INFORMATION_SCHEMA code listing data for a view created using casts with the above type descriptors.)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dsbos Daniel Barclay
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: