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

CAST to FLOAT with numeric literal yields DOUBLE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Functions - Drill
    • None

    Description

      Casting a numeric literal to FLOAT results in type DOUBLE rather than type FLOAT.

      Currently (before DRILL-2613 is fixed), querying for "CAST (1.1 AS FLOAT)" and reading the value using ResultSet.getFloat(...) yields an error about not allowed to use getFloat(...) for a FLOAT8 vector.

      Attachments

        1. DRILL-2668.1.patch.txt
          7 kB
          Daniel Barclay

        Issue Links

          Activity

            People

              cchang@maprtech.com Chun Chang
              dsbos Daniel Barclay
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: