Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-638

SQL standard REAL is 4 bytes, FLOAT is 8 bytes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0-incubating
    • Component/s: None
    • Labels:
      None

      Description

      Per the SQL standard,

      • the SQL REAL type is a 4 byte floating point number (thus maps to Java float),
      • FLOAT is up to 8 bytes (thus maps to Java double), and
      • DOUBLE is 8 bytes (thus maps to Java double).

      A number of places in Calcite map FLOAT to float values, and I think a few others map REAL to double.

        Issue Links

          Activity

          Hide
          julianhyde Julian Hyde added a comment -

          Resolved in release 1.2.0-incubating (2015-04-16)

          Show
          julianhyde Julian Hyde added a comment - Resolved in release 1.2.0-incubating (2015-04-16)
          Show
          julianhyde Julian Hyde added a comment - Fixed in http://git-wip-us.apache.org/repos/asf/incubator-calcite/commit/76a0665c .

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              julianhyde Julian Hyde
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development