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.

        Attachments

          Issue Links

            Activity

              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: